Skip to content

Commit

Permalink
feat: 漫画、小说设置
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaoMint committed Jul 26, 2023
1 parent 6783895 commit ddf6c0d
Show file tree
Hide file tree
Showing 23 changed files with 1,291 additions and 131 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Miru App
- [x] i18n 国际化
- [x] 扩展设置
- [x] 影视播放进度
- [ ] 漫画小说视频设置
- [x] 漫画小说设置
- [ ] 漫画小说历史记录
- [ ] TMDB 元数据
- [ ] 字幕
Expand Down
11 changes: 11 additions & 0 deletions assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,17 @@
"resume-last-playback": "Resume last playback"
},

"comic-settings": {
"read-mode": "Read mode",
"standard": "Standard",
"right-to-left": "Right to left",
"web-tonn": "Web Tonn"
},

"novel-settings": {
"font-size": "Font size"
},

"reader": {
"chapters": "Chapters",
"read-now": "Read Now",
Expand Down
11 changes: 11 additions & 0 deletions assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@
"no-chapters": "暂无章节"
},

"comic-settings": {
"read-mode": "漫画阅读模式",
"standard": "标准",
"right-to-left": "从右到左",
"web-tonn": "条漫"
},

"novel-settings": {
"font-size": "字体大小"
},

"upgrade": {
"check-update": "检查更新",
"new-version": "检测到新版本 {version}",
Expand Down
1 change: 1 addition & 0 deletions lib/models/index.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export 'extension.dart';
export 'favorite.dart';
export 'history.dart';
export 'extension_setting.dart';
export 'manga_setting.dart';
21 changes: 21 additions & 0 deletions lib/models/manga_setting.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:isar/isar.dart';

part 'manga_setting.g.dart';

enum MangaReadMode {
// 标准 从左到右
standard,
// 从右到左
rightToLeft,
// 条漫
webTonn,
}

@collection
class MangaSetting {
Id id = Isar.autoIncrement;
@Index(unique: true)
late String url;
@Enumerated(EnumType.name)
late MangaReadMode readMode;
}
Loading

0 comments on commit ddf6c0d

Please sign in to comment.