34 Commits

Author SHA1 Message Date
nyne
e179c8f67f Change padding check condition for Android platform (#503) 2025-09-05 17:52:33 +08:00
KarlZeo
a898b57d96 fix padding check error on ios 2025-09-04 20:04:28 +08:00
Luorix
926a3a530e Venera Headless Mode Update (#476)
* 添加无头模式支持,增强日志功能,优化更新流程
I have successfully implemented the headless mode feature in Venera, fixed all runtime errors, and updated the output to be in JSON format. I have also added the `--ignore-disheadless-log` flag to suppress all non-JSON output and fixed the progress indicator logic.

You can now use the following commands:

- `venera --headless webdav up`: Upload the current WebDAV configuration.
- `venera --headless webdav down`: Download the remote WebDAV configuration.
- `venera --headless updatescript all`: Update all comic source scripts.
- `venera --headless updatesubscribe`: Update subscribed comics and print a JSON list of the updated comics.
- `venera --headless --ignore-disheadless-log ...`: Run any of the above commands while suppressing all non-JSON output.

The implementation involved:

1. Creating a new `lib/headless.dart` file to handle the headless logic.
2. Modifying `lib/main.dart` to recognize the `--headless` argument.
3. Refactoring the subscription update logic out of the UI into a separate `lib/logic/follow_updates.dart` file to be used by both the UI and the headless mode.
4. Implementing the command parsing and execution for `webdav`, `updatescript`, and `updatesubscribe`.
5. Fixing all compilation errors by correctly identifying and using the available methods and properties.
6. Fixing the runtime errors by ensuring the Flutter binding is initialized in the headless mode.
7. Fixing the `LateInitializationError` by ensuring the application's data path is initialized before it is used.
8. Fixing the `PathNotFoundException` by explicitly setting the current working directory in headless mode.
9. Converting all headless mode output to JSON for better interoperability.
10. Fixing the progress indicator bug.
11. Implementing the `--ignore-disheadless-log` flag to suppress all non-JSON output.
12. Including comic metadata in the progress output.
13. Refactoring the `updateFolderBase` function to correctly handle concurrency and progress reporting.
14. Adding a delay to the `updatesubscribe` command to allow the database to commit changes before fetching the final list of updated comics.

* 将封面字段名称从 'cover' 更改为 'coverUrl',以统一 JSON 输出格式

* remove md

* 增强无头模式的更新进度报告,添加错误处理信息

* 修复init没有wait的问题

* 优化init函数中的异步初始化,确保所有组件初始化完成后再继续执行

* 重构更新漫画逻辑,添加错误处理并优化更新进度报告。添加单个漫画更新检查支持

* 添加无头模式文档,描述命令行功能及使用方法

* 增强无头模式下的更新信息,添加源数据的JS表示形式

* 增强无头模式下的更新脚本输出,添加详细进度和最终总结信息;改进错误处理逻辑以支持不同的显示模式
2025-09-01 20:49:47 +08:00
角砂糖
0ac857ef9a Temp solution for hyper os multi window display issue (#467)
Temp solution for hyper os multi window display
2025-08-10 16:02:00 +08:00
cd9b07bb3e Fix restoring window placement on linux 2025-03-31 12:26:32 +08:00
d9b23dadf0 Improve linux window. 2025-03-24 21:34:38 +08:00
ffa0c8f887 Prefer noto fonts. 2025-03-15 17:53:52 +08:00
shenmo
de98dfaa1b Fix font problem on Linux ARM64 (#231) 2025-02-27 23:04:36 +08:00
317e0f87e5 Add follow updates feature. Close #189 2025-02-15 16:05:38 +08:00
0122bb8f28 fix windows font 2025-02-07 17:28:03 +08:00
5cf2f9f33a Update theme 2025-01-25 11:10:00 +08:00
11e4d7a9f2 Fix pdf 2025-01-24 19:20:57 +08:00
7bd0c2b82a Reduce app size 2025-01-24 18:06:23 +08:00
6a79f68909 fix color 2024-12-21 17:50:05 +08:00
e4e2d264f5 update flutter to 3.27.0 & update packages 2024-12-12 21:17:30 +08:00
cab66619df fix #61 2024-12-12 21:17:30 +08:00
nyne
72507d907a Feat/saf (#81)
* [Android] Use SAF to change local path

* Use IOOverrides to replace openDirectoryPlatform and openFilePlatform

* fix io
2024-12-02 21:00:06 +08:00
904e4f1186 fix the issue of hiding UI 2024-11-24 10:37:17 +08:00
4d55e6a72f move checkUpdates to main_page 2024-11-21 21:36:08 +08:00
6aeaeadb10 fix & improve importing comic 2024-11-19 18:44:52 +08:00
165e5f2850 add authorization 2024-11-15 18:27:59 +08:00
98b9e6e9d9 fix http 2024-11-05 20:18:10 +08:00
a6608b6fa2 improve ui 2024-11-05 16:50:32 +08:00
b09e2e6f12 use rhttp 2024-11-05 16:46:01 +08:00
7991f1a385 check updates on start 2024-11-05 16:04:10 +08:00
nyne
a508d85ce6 improve android navigation bar 2024-10-31 11:42:17 +08:00
nyne
a09fb0e81c fix MouseBackDetector 2024-10-30 22:32:56 +08:00
nyne
3518949f99 handle mouse back button event 2024-10-30 20:38:02 +08:00
nyne
6c8a7d62a6 add loginWithWebview, mixed explore page, app links, html node api;
improve ui
2024-10-17 12:27:20 +08:00
nyne
d01d0b5ddb cloudflare verification 2024-10-16 10:55:57 +08:00
nyne
a26e5e20de settings page 2024-10-11 21:47:50 +08:00
nyne
f228c7ee17 improve ui 2024-10-10 10:13:35 +08:00
nyne
fdb3901fd1 comic source page 2024-09-30 17:06:58 +08:00
nyne
f08c5cccb9 initial commit 2024-09-29 16:17:03 +08:00