Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
3003h committed Nov 1, 2023
1 parent 630df11 commit f0f305a
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 1 deletion.
11 changes: 11 additions & 0 deletions changelog/v1.4.8+518.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 修正

- 同步网站关于原图链接的更新,目前旧版本应该无法下载原图
- 导入设置数据时,保持现有设置的下载路径设置,避免跨系统导入数据导致下载路径问题


## 新增

- 样式设置中,添加画廊评论显示开关,缩略图显示开关
- 添加水平缩略图布局,可在样式设置中启用
- 将部分数据库操作放到在单独的isolate线程中进行,避免在主线程中进行数据库操作导致的卡顿
31 changes: 31 additions & 0 deletions lib/pages/setting/block_rule_edit_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import 'package:fehviewer/common/controller/block_controller.dart';
import 'package:fehviewer/common/service/theme_service.dart';
import 'package:fehviewer/fehviewer.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class BlockRuleEditPage extends GetView<BlockController> {
const BlockRuleEditPage({super.key});

@override
Widget build(BuildContext context) {
final String _title = L10n.of(context).blockers;

return Obx(() {
return CupertinoPageScaffold(
backgroundColor: !ehTheme.isDarkMode
? CupertinoColors.secondarySystemBackground
: null,
navigationBar: CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(start: 0),
middle: Text(_title),
),
child: SafeArea(
bottom: false,
top: false,
child: ListView(),
),
);
});
}
}
30 changes: 30 additions & 0 deletions lib/pages/setting/block_rules_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import 'package:fehviewer/common/controller/block_controller.dart';
import 'package:fehviewer/common/service/theme_service.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class BlockRulesPage extends GetView<BlockController> {
const BlockRulesPage({super.key});

@override
Widget build(BuildContext context) {
final String _title = 'Block Rules';

return Obx(() {
return CupertinoPageScaffold(
backgroundColor: !ehTheme.isDarkMode
? CupertinoColors.secondarySystemBackground
: null,
navigationBar: CupertinoNavigationBar(
padding: const EdgeInsetsDirectional.only(start: 0),
middle: Text(_title),
),
child: SafeArea(
bottom: false,
top: false,
child: ListView(),
),
);
});
}
}
14 changes: 14 additions & 0 deletions lib/pages/setting/blockers_page.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:fehviewer/common/controller/block_controller.dart';
import 'package:fehviewer/common/service/layout_service.dart';
import 'package:fehviewer/common/service/theme_service.dart';
import 'package:fehviewer/component/setting_base.dart';
import 'package:fehviewer/fehviewer.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:get/get.dart';

class BlockersPage extends GetView<BlockController> {
Expand Down Expand Up @@ -63,6 +65,18 @@ class BlockersPage extends GetView<BlockController> {
top: false,
child: ListView(
children: [
if (!kReleaseMode)
SelectorSettingItem(
hideDivider: true,
title: 'Block Rules',
onTap: () {
Get.toNamed(
EHRoutes.blockRules,
id: isLayoutLarge ? 2 : null,
);
},
),
if (!kReleaseMode) const ItemSpace(),
// 开关
Obx(() {
return TextSwitchItem(
Expand Down
12 changes: 12 additions & 0 deletions lib/pages/tab/view/home_page_large.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import 'package:fehviewer/pages/gallery/view/sliver/gallery_page.dart';
import 'package:fehviewer/pages/setting/about_page.dart';
import 'package:fehviewer/pages/setting/advanced_setting_page.dart';
import 'package:fehviewer/pages/setting/avatar_setting_page.dart';
import 'package:fehviewer/pages/setting/block_rule_edit_page.dart';
import 'package:fehviewer/pages/setting/block_rules_page.dart';
import 'package:fehviewer/pages/setting/blockers_page.dart';
import 'package:fehviewer/pages/setting/controller/tab_setting_controller.dart';
import 'package:fehviewer/pages/setting/custom_hosts_page.dart';
Expand Down Expand Up @@ -219,6 +221,16 @@ class TabHomeLarge extends GetView<TabHomeController> {
settings: settings,
page: () => BlockersPage(),
);
case EHRoutes.blockRules:
return GetPageRoute(
settings: settings,
page: () => BlockRulesPage(),
);
case EHRoutes.blockRuleEdit:
return GetPageRoute(
settings: settings,
page: () => BlockRuleEditPage(),
);
case EHRoutes.avatarSetting:
return GetPageRoute(
settings: settings,
Expand Down
10 changes: 10 additions & 0 deletions lib/route/app_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import 'package:fehviewer/pages/login/view/web_login_in.dart';
import 'package:fehviewer/pages/setting/about_page.dart';
import 'package:fehviewer/pages/setting/advanced_setting_page.dart';
import 'package:fehviewer/pages/setting/avatar_setting_page.dart';
import 'package:fehviewer/pages/setting/block_rule_edit_page.dart';
import 'package:fehviewer/pages/setting/block_rules_page.dart';
import 'package:fehviewer/pages/setting/blockers_page.dart';
import 'package:fehviewer/pages/setting/controller/tab_setting_controller.dart';
import 'package:fehviewer/pages/setting/custom_hosts_page.dart';
Expand Down Expand Up @@ -245,6 +247,14 @@ class AppPages {
name: EHRoutes.blockers,
page: () => const BlockersPage(),
),
GetPage(
name: EHRoutes.blockRules,
page: () => const BlockRulesPage(),
),
GetPage(
name: EHRoutes.blockRuleEdit,
page: () => const BlockRuleEditPage(),
),
GetPage(
name: EHRoutes.logfile,
page: () => LogPage(),
Expand Down
2 changes: 2 additions & 0 deletions lib/route/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class EHRoutes {
static const String userTags = '/userTags';
static const String tagTranslate = '/tagTranslate';
static const String blockers = '/blockers';
static const String blockRules = '/blockRules';
static const String blockRuleEdit = '/blockRuleEdit';

static const String imageHide = '/imageHide';
static const String mangaHidedImage = '/imageHide/mangaHidedImage';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: fehviewer
description: An unofficial e-hentai app

publish_to: 'none'
version: 1.4.7+517
version: 1.4.8+518

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down

0 comments on commit f0f305a

Please sign in to comment.