add comment
This commit is contained in:
parent
7debe9269b
commit
ba1e8d56d3
|
@ -613,8 +613,6 @@ func FlatInvoke(method string, params string) (string, error) {
|
||||||
return downloadGame(params)
|
return downloadGame(params)
|
||||||
case "convertImageToJPEG100":
|
case "convertImageToJPEG100":
|
||||||
return "", convertImageToJPEG100(params)
|
return "", convertImageToJPEG100(params)
|
||||||
case "specialDownloadTitle":
|
|
||||||
return specialDownloadTitle(params)
|
|
||||||
case "loadDownloadAndExportPath":
|
case "loadDownloadAndExportPath":
|
||||||
return loadDownloadAndExportPath(), nil
|
return loadDownloadAndExportPath(), nil
|
||||||
case "saveDownloadAndExportPath":
|
case "saveDownloadAndExportPath":
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
package controller
|
|
||||||
|
|
||||||
import "pikapi/main/database/comic_center"
|
|
||||||
|
|
||||||
// 根据comicId,获得标题,但是必须是下载的内容(暂未使用)
|
|
||||||
func specialDownloadTitle(comicId string) (string, error) {
|
|
||||||
info, err := comic_center.DownloadInfo(comicId)
|
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
return info.Title, nil
|
|
||||||
}
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/// 相册模式下预加载图片数量
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
/// 平台信息
|
||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
/// 时区设置
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import '../Common.dart';
|
import '../Common.dart';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import 'package:event/event.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_search_bar/flutter_search_bar.dart';
|
import 'package:flutter_search_bar/flutter_search_bar.dart';
|
||||||
import 'package:pikapi/basic/Common.dart';
|
import 'package:pikapi/basic/Common.dart';
|
||||||
|
|
|
@ -8,7 +8,6 @@ import 'package:pikapi/basic/Common.dart';
|
||||||
import 'package:pikapi/basic/Cross.dart';
|
import 'package:pikapi/basic/Cross.dart';
|
||||||
import 'package:pikapi/basic/Entities.dart';
|
import 'package:pikapi/basic/Entities.dart';
|
||||||
import 'package:pikapi/basic/Method.dart';
|
import 'package:pikapi/basic/Method.dart';
|
||||||
import 'package:pikapi/basic/config/Platform.dart';
|
|
||||||
import 'package:pikapi/screens/DownloadExportToSocketScreen.dart';
|
import 'package:pikapi/screens/DownloadExportToSocketScreen.dart';
|
||||||
|
|
||||||
import 'components/ContentError.dart';
|
import 'components/ContentError.dart';
|
||||||
|
|
|
@ -9,6 +9,7 @@ import 'components/ContentError.dart';
|
||||||
import 'components/ContentLoading.dart';
|
import 'components/ContentLoading.dart';
|
||||||
import 'components/DownloadInfoCard.dart';
|
import 'components/DownloadInfoCard.dart';
|
||||||
|
|
||||||
|
// 传输到其他设备
|
||||||
class DownloadExportToSocketScreen extends StatefulWidget {
|
class DownloadExportToSocketScreen extends StatefulWidget {
|
||||||
final DownloadComic task;
|
final DownloadComic task;
|
||||||
final String comicId;
|
final String comicId;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:pikapi/basic/Channels.dart';
|
import 'package:pikapi/basic/Channels.dart';
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'package:photo_view/photo_view.dart';
|
||||||
import 'package:pikapi/basic/Cross.dart';
|
import 'package:pikapi/basic/Cross.dart';
|
||||||
import 'package:pikapi/screens/components/Images.dart';
|
import 'package:pikapi/screens/components/Images.dart';
|
||||||
|
|
||||||
|
// 预览图片
|
||||||
class FilePhotoViewScreen extends StatelessWidget {
|
class FilePhotoViewScreen extends StatelessWidget {
|
||||||
final String filePath;
|
final String filePath;
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:pikapi/screens/components/ItemBuilder.dart';
|
||||||
|
|
||||||
import 'components/GameTitleCard.dart';
|
import 'components/GameTitleCard.dart';
|
||||||
|
|
||||||
|
// 游戏下载地址列表页
|
||||||
class GameDownloadScreen extends StatefulWidget {
|
class GameDownloadScreen extends StatefulWidget {
|
||||||
final GameInfo info;
|
final GameInfo info;
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import 'package:pikapi/screens/components/Images.dart';
|
||||||
import 'GameDownloadScreen.dart';
|
import 'GameDownloadScreen.dart';
|
||||||
import 'components/GameTitleCard.dart';
|
import 'components/GameTitleCard.dart';
|
||||||
|
|
||||||
|
// 游戏详情
|
||||||
class GameInfoScreen extends StatefulWidget {
|
class GameInfoScreen extends StatefulWidget {
|
||||||
final String gameId;
|
final String gameId;
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ import 'package:pikapi/screens/components/ContentBuilder.dart';
|
||||||
import 'GameInfoScreen.dart';
|
import 'GameInfoScreen.dart';
|
||||||
import 'components/Images.dart';
|
import 'components/Images.dart';
|
||||||
|
|
||||||
|
// 游戏列表
|
||||||
class GamesScreen extends StatefulWidget {
|
class GamesScreen extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _GamesScreenState();
|
State<StatefulWidget> createState() => _GamesScreenState();
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:pikapi/basic/Method.dart';
|
||||||
import 'package:pikapi/screens/components/ContentBuilder.dart';
|
import 'package:pikapi/screens/components/ContentBuilder.dart';
|
||||||
import 'package:pikapi/screens/components/ContentLoading.dart';
|
import 'package:pikapi/screens/components/ContentLoading.dart';
|
||||||
|
|
||||||
|
// 数据迁移页面
|
||||||
class MigrateScreen extends StatefulWidget {
|
class MigrateScreen extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _MigrateScreenState();
|
State<StatefulWidget> createState() => _MigrateScreenState();
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:pikapi/basic/config/ShadowCategories.dart';
|
||||||
|
|
||||||
import 'components/ComicListBuilder.dart';
|
import 'components/ComicListBuilder.dart';
|
||||||
|
|
||||||
|
// 随机漫画页面
|
||||||
class RandomComicsScreen extends StatefulWidget {
|
class RandomComicsScreen extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _RandomComicsScreenState();
|
State<StatefulWidget> createState() => _RandomComicsScreenState();
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:pikapi/basic/config/ShadowCategories.dart';
|
||||||
|
|
||||||
import 'components/ComicListBuilder.dart';
|
import 'components/ComicListBuilder.dart';
|
||||||
|
|
||||||
|
// 排行榜
|
||||||
class RankingsScreen extends StatelessWidget {
|
class RankingsScreen extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -6,6 +6,7 @@ import 'package:pikapi/screens/components/NetworkSetting.dart';
|
||||||
|
|
||||||
import 'components/ContentLoading.dart';
|
import 'components/ContentLoading.dart';
|
||||||
|
|
||||||
|
/// 注册页面
|
||||||
class RegisterScreen extends StatefulWidget {
|
class RegisterScreen extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => _RegisterScreenState();
|
State<StatefulWidget> createState() => _RegisterScreenState();
|
||||||
|
|
|
@ -8,6 +8,7 @@ import 'package:pikapi/basic/Method.dart';
|
||||||
import '../basic/Entities.dart';
|
import '../basic/Entities.dart';
|
||||||
import 'components/ComicPager.dart';
|
import 'components/ComicPager.dart';
|
||||||
|
|
||||||
|
// 搜索页面
|
||||||
class SearchScreen extends StatefulWidget {
|
class SearchScreen extends StatefulWidget {
|
||||||
final String keyword;
|
final String keyword;
|
||||||
final String? category;
|
final String? category;
|
||||||
|
|
Loading…
Reference in New Issue