Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
dart format .
  • Loading branch information
d1y committed Jun 27, 2024
1 parent 9ed0c4c commit 0e88022
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/app/modules/home/views/source_help.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ class _SourceHelpTableState extends State<SourceHelpTable> {
}
if (result.isEmpty /* 内容为空 */) return;
updateExtendMirrorList(result);
showEasyCupertinoDialog(content: '已添加到本地(=^-ω-^=)! \n请到 设置->视频源管理 中手动获取配置(源)');
showEasyCupertinoDialog(
content: '已添加到本地(=^-ω-^=)! \n请到 设置->视频源管理 中手动获取配置(源)',
);
}

updateExtendMirrorList(List<String> result) {
Expand Down
6 changes: 4 additions & 2 deletions packages/xi/lib/interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,14 @@ class EmptySpiderAdapter implements ISpiderAdapter {
}

@override
Future<List<VideoDetail>> getHome({int page = 1, int limit = 10, String? category}) async {
Future<List<VideoDetail>> getHome(
{int page = 1, int limit = 10, String? category}) async {
return [];
}

@override
Future<List<VideoDetail>> getSearch({required String keyword, int page = 1, int limit = 10}) async {
Future<List<VideoDetail>> getSearch(
{required String keyword, int page = 1, int limit = 10}) async {
return [];
}

Expand Down
3 changes: 1 addition & 2 deletions packages/xi/lib/models/spec.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// 源列表导入列表, 一般来说是 waifu-project/assets 仓库维护的 .json 文件
class AssetSourceItemJSONData {

/// 源名称
String? title;

Expand Down Expand Up @@ -35,4 +34,4 @@ class AssetSourceItemJSONData {
data['nsfw'] = nsfw;
return data;
}
}
}
2 changes: 1 addition & 1 deletion packages/xi/lib/utils/source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class SourceUtils {
await Future.forEach(sources, (String element) async {
debugPrint("加载网络源: $element");
try {
var time = const Duration(seconds: 9/* 秒 */);
var time = const Duration(seconds: 9 /* 秒 */);
var resp = await XHttp.dio.get(
element,
options: Options(
Expand Down

0 comments on commit 0e88022

Please sign in to comment.