488 Commits

Author SHA1 Message Date
住京华
b8ce69011c feat(video): use ffmpeg as video backend (#241)
* chore(deps): update dependencies

* chore(deps): update dependencies

* fix: update ios and macos platform version

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* feat: add argon2 support

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* chore(deps): update deps

* feat(video): use ffmpeg as video backend

* fix(video): simplify video view invocation and improve button interaction

* feat(button): add customizable color option to PageBackButton

[skip ci]
2025-05-19 00:18:51 +08:00
住京华
4d93fe259b Merge pull request #240 from liruohrh/feat/ci_win
ci: add ci for windows
2025-05-13 14:58:39 +08:00
liruohrh
466a664157 fix(rust): new zip, use std::os::unix only in unix 2025-05-12 19:41:07 +08:00
liruohrh
7885b68415 ci: github actions for windows 2025-05-11 23:00:56 +08:00
github-actions[bot]
8ef72433eb Merge pull request #238 from ZhuJHua/changelog-update
Update changelog
2025-04-18 04:06:47 +00:00
github-actions[bot]
073e483112 Update changelog 2025-04-18 04:06:41 +00:00
住京华
967f652d9a Merge pull request #237 from ZhuJHua/develop
fix: qweather api error
2025-04-18 12:06:14 +08:00
ZhuJHua
64ca18ef44 fix: qweather api error
(cherry picked from commit 2e206a9335)
2025-04-18 12:02:41 +08:00
github-actions[bot]
c1948f888e Merge pull request #236 from ZhuJHua/changelog-update
Update changelog
2025-04-18 04:01:43 +00:00
github-actions[bot]
2b7f750b4c Update changelog 2025-04-18 04:01:39 +00:00
住京华
ef3f0270a6 Merge pull request #235 from ZhuJHua/develop
feat: integrate Jieba for keyword extraction and search optimization
2025-04-18 12:01:29 +08:00
ZhuJHua
8d9f380ec5 Revert "fix: qweather api error"
This reverts commit 2e206a9335.
2025-04-18 11:58:51 +08:00
ZhuJHua
2e206a9335 fix: qweather api error 2025-04-18 11:54:16 +08:00
ZhuJHua
f642530bca feat: integrate Jieba for keyword extraction and search optimization 2025-04-18 11:19:01 +08:00
github-actions[bot]
13e3dc1bb2 Merge pull request #234 from ZhuJHua/changelog-update
Update changelog
2025-04-17 03:51:56 +00:00
github-actions[bot]
ce319374a2 Update changelog 2025-04-17 03:51:50 +00:00
住京华
eee3cc03d8 Merge pull request #233 from ZhuJHua/develop
feat: optimize image processing capabilities
2025-04-17 11:51:40 +08:00
ZhuJHua
372678fa82 feat: optimize image processing capabilities 2025-04-17 11:41:41 +08:00
ZhuJHua
9b3757dea1 ci: add test module to lib.rs 2025-04-17 11:20:11 +08:00
ZhuJHua
cc4cee941d ci: update rust test ci 2025-04-17 11:15:48 +08:00
ZhuJHua
3be9f90575 chore(deps): update dependencies 2025-04-16 23:56:59 +08:00
github-actions[bot]
87a7af08ff Merge pull request #231 from ZhuJHua/changelog-update
Update changelog
2025-04-14 07:34:22 +00:00
github-actions[bot]
cf97917117 Update changelog 2025-04-14 07:34:17 +00:00
住京华
487972451c Merge pull request #230 from ZhuJHua/develop
feat: add code scanning to import support
2025-04-14 15:34:06 +08:00
ZhuJHua
2eb6ab7409 feat: add code scanning to import support 2025-04-14 15:30:23 +08:00
github-actions[bot]
f106154fe4 Merge pull request #229 from ZhuJHua/changelog-update
Update changelog
2025-04-13 13:42:42 +00:00
github-actions[bot]
9524193261 Update changelog 2025-04-13 13:42:36 +00:00
住京华
59346795ae Merge pull request #228 from ZhuJHua/develop
refactor: optimize the code structure
2025-04-13 21:42:24 +08:00
ZhuJHua
96682cb593 refactor: optimize the code structure 2025-04-13 21:36:41 +08:00
ZhuJHua
06b52fce5d chore(deps): update permission_handler and syncfusion_flutter_sliders versions 2025-04-09 23:54:58 +08:00
ZhuJHua
9edc55a6c8 chore(deps): update flutter_map_cache and flutter_native_splash versions 2025-04-07 23:57:58 +08:00
ZhuJHua
d25231c413 feat(widget): add utility functions to capture widget as image 2025-04-05 23:56:40 +08:00
ZhuJHua
6584cca855 chore(deps): update project configuration and dependencies 2025-04-02 23:58:59 +08:00
ZhuJHua
12e4e808da chore(deps): update project configuration and dependencies 2025-04-01 23:52:46 +08:00
ZhuJHua
3266d9f438 chore(deps): update project configuration and dependencies 2025-03-28 23:56:46 +08:00
ZhuJHua
c39f5b30f8 chore(deps): update project configuration and dependencies 2025-03-27 23:35:59 +08:00
ZhuJHua
d5e5b94607 chore(deps): update project configuration and dependencies 2025-03-25 22:34:00 +08:00
github-actions[bot]
ddb6d8f2db Merge pull request #221 from ZhuJHua/changelog-update
Update changelog
2025-03-22 21:55:31 +00:00
github-actions[bot]
a7f7601408 Update changelog 2025-03-22 21:55:27 +00:00
住京华
5edaf2f6cf Merge pull request #220 from ZhuJHua/develop
chore: remove custom_lint to fix dart analyzer slow
2025-03-23 05:55:15 +08:00
ZhuJHua
b274622006 chore: remove custom_lint to fix dart analyzer slow 2025-03-23 05:36:05 +08:00
github-actions[bot]
6de1968ddf Merge pull request #219 from ZhuJHua/changelog-update
Update changelog
2025-03-22 20:35:36 +00:00
github-actions[bot]
aeef1e511c Update changelog 2025-03-22 20:35:32 +00:00
住京华
9589dc9e54 Merge pull request #218 from ZhuJHua/develop
fix(share): fix capture and share methods
2025-03-23 04:35:20 +08:00
ZhuJHua
4abb85ad42 fix: remove workspace 2025-03-23 04:30:17 +08:00
ZhuJHua
f9f2056d04 fix(share): fix capture and share methods 2025-03-22 23:38:38 +08:00
ZhuJHua
182008a678 chore(deps): update isar_flutter_libs dependency to use git source 2025-03-22 23:22:57 +08:00
ZhuJHua
0b1a9bf4c8 chore(deps): update package versions 2025-03-21 23:58:26 +08:00
ZhuJHua
cd51e8922b chore(readme): update Flutter and Dart versions in documentation 2025-03-20 17:27:07 +08:00
github-actions[bot]
8c9fe08128 Merge pull request #214 from ZhuJHua/changelog-update
Update changelog
2025-03-19 15:32:33 +00:00
github-actions[bot]
8dc18c92cd Update changelog 2025-03-19 15:32:25 +00:00
住京华
2a9900556e Merge pull request #213 from ZhuJHua/develop
chore(deps): update dependencies to latest versions
2025-03-19 23:32:08 +08:00
ZhuJHua
0e46a830af chore(deps): update dependencies to latest versions 2025-03-19 23:27:42 +08:00
ZhuJHua
41709c8832 chore(deps): update dependencies to latest versions 2025-03-18 23:57:10 +08:00
住京华
316fa1119f Merge pull request #212
docs: update sponsor list
2025-03-16 21:23:46 +08:00
ZhuJHua
0df58eed05 docs: update sponsor list
[skip ci]
2025-03-16 21:23:19 +08:00
github-actions[bot]
7d936ac1c3 Merge pull request #211 from ZhuJHua/changelog-update
Update changelog
2025-03-16 12:56:57 +00:00
github-actions[bot]
4a1c2609ab Update changelog 2025-03-16 12:56:53 +00:00
住京华
28dc3e1114 Merge pull request #210 from ZhuJHua/develop
feat(zip): use rust to increase data export speed
2025-03-16 20:56:41 +08:00
ZhuJHua
cd78b4d64d chore(deps): fix library error 2025-03-16 20:53:58 +08:00
ZhuJHua
e32bb156fe chore(deps): remove unnecessary dependencies 2025-03-16 20:47:47 +08:00
ZhuJHua
ab8f40b98f chore(ci): remove redundant dependency installation for Rust builder 2025-03-16 20:22:45 +08:00
ZhuJHua
235f632670 feat(zip): use rust to increase data export speed 2025-03-16 20:18:47 +08:00
ZhuJHua
af3bf29139 chore(deps): use dart workspace 2025-03-16 20:14:58 +08:00
ZhuJHua
1afe59ac70 chore(deps): update dependencies 2025-03-16 00:03:53 +08:00
ZhuJHua
406e042411 chore(deps): update dependencies 2025-03-16 00:03:53 +08:00
ZhuJHua
8d95476d04 chore(deps): update dependencies 2025-03-16 00:03:52 +08:00
ZhuJHua
83049f598e chore(deps): update dependencies in pubspec.lock and pubspec.yaml 2025-03-16 00:03:52 +08:00
住京华
047a3ac576 Merge pull request #203 from ZhuJHua/develop
ci: fix build
2025-03-03 00:50:39 +08:00
ZhuJHua
fe2f29c939 ci: fix build
[skip ci]
2025-03-03 00:49:58 +08:00
住京华
c631636472 Merge pull request #202 from ZhuJHua/develop
ci: fix build error
2025-03-03 00:22:22 +08:00
ZhuJHua
ca9c553df1 ci(fix build error):
[skip ci]
2025-03-03 00:20:57 +08:00
github-actions[bot]
4ca93f15ca Merge pull request #201 from ZhuJHua/changelog-update
Update changelog
2025-03-02 16:17:45 +00:00
github-actions[bot]
9906d8c1af Update changelog 2025-03-02 16:17:42 +00:00
住京华
3a00ffa04f Merge pull request #200 from ZhuJHua/develop
feat: enhance diary card views with icons and improve page transitions
2025-03-03 00:17:30 +08:00
ZhuJHua
5328649b67 feat: enhance diary card views with icons and improve page transitions 2025-03-03 00:06:51 +08:00
github-actions[bot]
b3b3f526b4 Merge pull request #199 from ZhuJHua/changelog-update
Update changelog
2025-03-02 15:32:10 +00:00
github-actions[bot]
1f438e5c52 Update changelog 2025-03-02 15:32:06 +00:00
住京华
c4f5cf7d96 Merge pull request #198 from ZhuJHua/develop
feat: add an abstract sync interface
2025-03-02 23:31:54 +08:00
ZhuJHua
443de5d35a feat: add an abstract sync interface 2025-03-02 23:26:17 +08:00
github-actions[bot]
c424839453 Merge pull request #197 from ZhuJHua/changelog-update
Update changelog
2025-03-01 23:39:26 +00:00
github-actions[bot]
6d9489076e Update changelog 2025-03-01 23:39:22 +00:00
住京华
cb43f50ea5 Merge pull request #196 from ZhuJHua/develop
chore: update NDK and plugin versions in build configuration
2025-03-02 07:39:10 +08:00
ZhuJHua
b6e116418b chore: update .gitignore 2025-03-02 07:35:42 +08:00
ZhuJHua
574e7090cc chore: update NDK and plugin versions in build configuration 2025-03-02 07:31:21 +08:00
github-actions[bot]
77b9bd5005 Merge pull request #195 from ZhuJHua/changelog-update
Update changelog
2025-03-01 23:23:13 +00:00
github-actions[bot]
7c6f704895 Update changelog 2025-03-01 23:23:10 +00:00
住京华
7ed54ddf95 Merge pull request #194 from ZhuJHua/develop
refactor: update tile caching implementation
2025-03-02 07:22:59 +08:00
ZhuJHua
d992cc173d refactor: remove Objectbox plugin references and update tile caching implementation 2025-03-02 07:05:48 +08:00
github-actions[bot]
1671c3c770 Merge pull request #193 from ZhuJHua/changelog-update
Update changelog
2025-03-01 20:53:40 +00:00
github-actions[bot]
89f9045e30 Update changelog 2025-03-01 20:53:35 +00:00
住京华
80ad276634 Merge pull request #192 from ZhuJHua/develop
refactor: streamline theme management and dynamic color support
2025-03-02 04:53:20 +08:00
ZhuJHua
3fb5573a7c refactor: streamline theme management and dynamic color support 2025-03-02 04:47:50 +08:00
ZhuJHua
9b72ceaa6e chore: update dependencies in pubspec.yaml to latest versions 2025-03-01 23:59:33 +08:00
github-actions[bot]
8047c391b3 Merge pull request #189 from ZhuJHua/changelog-update
Update changelog
2025-02-24 04:18:21 +00:00
github-actions[bot]
ea053f5a73 Update changelog 2025-02-24 04:18:17 +00:00
住京华
31560b783f Merge pull request #188 from ZhuJHua/develop
fix: update diary_view to use Get.put for DiaryLogic instantiation
2025-02-24 12:18:05 +08:00
ZhuJHua
d25d8c8269 fix: update diary_view to use Get.put for DiaryLogic instantiation 2025-02-24 12:14:55 +08:00
github-actions[bot]
fae6316f55 Merge pull request #187 from ZhuJHua/changelog-update
Update changelog
2025-02-23 13:55:23 +00:00
github-actions[bot]
63ba3c2b68 Update changelog 2025-02-23 13:55:18 +00:00
住京华
827fd89ddc Merge pull request #186 from ZhuJHua/develop
ci: fix cliff ci
2025-02-23 21:54:36 +08:00
ZhuJHua
5bf5f36f9d ci: fix cliff ci
[skip ci]
2025-02-23 21:53:45 +08:00
住京华
84d1bb5802 Merge pull request #183 from ZhuJHua/develop
ci: improve ci
2025-02-23 21:51:00 +08:00
ZhuJHua
ee1e240f6d chore: upgrade actions/checkout to v4 across workflow files 2025-02-23 21:46:55 +08:00
ZhuJHua
5f5e6b90ed feat: update changelog workflow to check PR merge status before generating changelog 2025-02-23 21:41:04 +08:00
ZhuJHua
512cd622f7 fix: correct syntax for workflow_run trigger in auto-merge.yml 2025-02-23 21:29:29 +08:00
住京华
5b9ca30c95 Merge pull request #181 from ZhuJHua/develop
feat: add workflow_run trigger for Git Cliff completion
2025-02-23 21:28:53 +08:00
github-actions[bot]
348fe883ab Update changelog (#182) 2025-02-23 13:28:26 +00:00
ZhuJHua
64a65f39b6 feat: add workflow_run trigger for Git Cliff completion 2025-02-23 21:23:47 +08:00
github-actions[bot]
acca62a525 Update changelog (#180) 2025-02-23 13:10:27 +00:00
住京华
cd78ab72c4 feat: enhance UI and improve desktop experience (#179) 2025-02-23 13:06:39 +00:00
github-actions[bot]
9c20ee729c Update changelog (#178) 2025-02-23 09:57:20 +00:00
住京华
a2c92ef947 fix: ci (#177) 2025-02-23 09:56:44 +00:00
住京华
42fe3ab33b Merge pull request #174 from ZhuJHua/dev
ci: add git-cliff to generate changelog
2025-02-23 17:42:54 +08:00
ZhuJHua
738d13d67d ci: add git-cliff to generate changelog 2025-02-23 17:41:08 +08:00
ZhuJHua
e7ea753e78 ci: add git-cliff to generate changelog 2025-02-23 17:34:33 +08:00
ZhuJHua
39e52878e1 ci: add git-cliff to generate changelog 2025-02-23 17:27:23 +08:00
ZhuJHua
744e7464e1 ci: add git-cliff to generate changelog
[Skip ci]
2025-02-23 17:12:23 +08:00
住京华
a6c91f2316 Merge pull request #173 from ZhuJHua/dev
ci: add git-cliff to generate changelog
2025-02-23 17:04:30 +08:00
ZhuJHua
10e0da1861 ci: add git-cliff to generate changelog 2025-02-23 16:56:46 +08:00
住京华
ccf2ec85dd Merge pull request #172 from ZhuJHua/dev
feat: enhance media library appearance and animations
2025-02-23 16:41:20 +08:00
ZhuJHua
bcdbabc8d4 fix: update dependencies and remove unused localization imports 2025-02-23 16:36:48 +08:00
ZhuJHua
80cd02e0fe fix: update localization configuration to include synthetic package option 2025-02-23 16:35:00 +08:00
ZhuJHua
abbd48d600 feat: add WindowsBar and MoveTitle widgets for improved window management 2025-02-23 16:34:04 +08:00
ZhuJHua
f172e0791a refactor: remove video page routing and update video state initialization 2025-02-23 16:28:41 +08:00
ZhuJHua
e5578bdeae feat: improve image handling with enhanced hero transitions and dynamic sizing 2025-02-23 02:17:17 +08:00
ZhuJHua
b9d694ca50 fix: update application name and improve debug configuration 2025-02-23 02:14:41 +08:00
ZhuJHua
827c98d177 feat: enhance image viewing experience with hero transitions and loading states 2025-02-18 23:58:46 +08:00
ZhuJHua
e9992128c7 feat: optimize image preview 2025-02-17 23:59:13 +08:00
ZhuJHua
12e5dbdaad fix: route error 2025-02-16 23:57:40 +08:00
ZhuJHua
cdf39298f9 feat: use the new route transition 2025-02-14 23:54:06 +08:00
ZhuJHua
fe6267bf29 chore(*): upgrade flutter version to 3.29.0 2025-02-13 23:57:51 +08:00
ZhuJHua
e53c379502 chore(*): upgrade flutter and frb version 2025-02-12 23:56:07 +08:00
住京华
b3d1b53fb1 Merge pull request #166 from ZhuJHua/dev
test: add test for utils
2025-02-09 00:01:38 +08:00
ZhuJHua
1c374b7a84 test(add test for utils): 2025-02-08 23:56:26 +08:00
住京华
7597ff5194 Merge pull request #164 from ZhuJHua/dev
feat: supports data encryption using aes-gcm
2025-02-07 16:56:35 +08:00
ZhuJHua
6ce64f8b46 feat: add secure storage to store user key 2025-02-06 18:51:07 +08:00
ZhuJHua
545891fe55 feat(aes): add aes-gcm encryption algorithm 2025-02-06 18:49:42 +08:00
ZhuJHua
610b983e12 feat(font): clear cache when font style change 2025-02-05 17:18:53 +08:00
住京华
905a398e7e Merge pull request #163
fix(log): log did not work in release mode
2025-02-05 16:45:05 +08:00
ZhuJHua
6b1aa8c07d fix(log): log did not work in release mode 2025-02-05 16:44:30 +08:00
住京华
2176e96c2d Merge pull request #162 from ZhuJHua/dev
feat(font): enhance font loading capabilities
2025-02-05 16:43:31 +08:00
ZhuJHua
c0fe3d31a3 fix(font): fix font is not loaded when startup 2025-02-05 16:02:18 +08:00
ZhuJHua
75dfb05e6c feat(font): enhance font loading capabilities 2025-02-05 15:38:17 +08:00
住京华
9ba802a6ae Merge pull request #161 from ZhuJHua/dev
feat(diary): enhance text handling
2025-02-05 15:05:53 +08:00
住京华
0029932e85 Merge pull request #160 from ZhuJHua/readme
chore: update readme
2025-02-04 22:31:45 +08:00
ZhuJHua
09b979493c chore: update readme 2025-02-04 22:27:42 +08:00
ZhuJHua
97dd44856c feat(diary): enhance text handling by trimming titles and removing line breaks from content 2025-02-04 14:07:17 +08:00
住京华
cebab37e0a Merge pull request #159 from ZhuJHua/dev
fix(font): fix adding the font may cause the application crash
2025-02-04 05:10:08 +08:00
ZhuJHua
3006aa2dda fix(font): fix adding the font may cause the application crash 2025-02-04 05:07:06 +08:00
ZhuJHua
527767e1ab feat(font): add caching for font name and weight axis retrieval 2025-02-04 05:05:45 +08:00
住京华
1f08c317b9 Merge pull request #158 from ZhuJHua/dev
perf: improve application performance
2025-02-04 04:41:50 +08:00
ZhuJHua
5dc836ecce feat(font): streamline font loading 2025-02-04 04:38:07 +08:00
ZhuJHua
5154db3269 feat(cache): implement LRUCache and AsyncLRUCache for efficient data management 2025-02-04 04:13:36 +08:00
ZhuJHua
b5be93fa56 refactor: rename rust library from rust_lib_mood_diary to moodiary_rust 2025-02-04 03:10:37 +08:00
住京华
cb1bb4b891 Merge pull request #157 from ZhuJHua/dev
feat(text): introduce AdaptiveText and EllipsisText components
2025-02-04 02:38:31 +08:00
ZhuJHua
5ded722d5c chore: update imports and refresh package version to 3.0.0 2025-02-04 02:34:12 +08:00
ZhuJHua
6ae4b4a45f feat(about): replace Text with AnimatedText for dynamic app info display 2025-02-04 02:34:00 +08:00
ZhuJHua
7acbc7854d feat(text): introduce AdaptiveText and EllipsisText components for improved text handling 2025-02-04 02:33:47 +08:00
住京华
1374ae8a64 Merge pull request #156
chore: update flutter_rust_bridge to version 2.7.1
2025-02-01 00:26:06 +08:00
ZhuJHua
4436162bd7 chore: update flutter_rust_bridge to version 2.7.1 and adjust generated files 2025-01-31 21:36:32 +08:00
ZhuJHua
e3066748d4 feat(llama): add LlamaUtil class and update dependencies 2025-01-30 23:40:50 +08:00
ZhuJHua
f6fbdf8c4c build(*): upgrade dependencies 2025-01-29 23:59:00 +08:00
住京华
7523cd0f6b Merge pull request #155 from ZhuJHua/dev
Dev
2025-01-27 17:30:47 +08:00
ZhuJHua
a1ad810e0f chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:29:36 +08:00
ZhuJHua
e9498646e2 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:27:32 +08:00
住京华
4e05adca5d Merge pull request #154 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 17:18:25 +08:00
ZhuJHua
ac23cdaeb1 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:11:52 +08:00
住京华
74b8f4db3b Merge pull request #153 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 17:09:04 +08:00
ZhuJHua
9daf5dfe4b chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:08:36 +08:00
住京华
bfb5429f76 Merge pull request #152 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 17:07:02 +08:00
ZhuJHua
c3aac55752 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:06:37 +08:00
住京华
86f3ecbfb9 Merge pull request #151 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 17:02:17 +08:00
ZhuJHua
13348fd880 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 17:00:26 +08:00
住京华
77bfab6584 Merge pull request #150 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 16:57:10 +08:00
ZhuJHua
6649f04ae3 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 16:56:39 +08:00
住京华
a1379eb474 Merge pull request #149 from ZhuJHua/dev
chore(*): adjust the output format of outdated dependencies in the Te…
2025-01-27 16:49:51 +08:00
ZhuJHua
28bffec383 chore(*): adjust the output format of outdated dependencies in the Telegram bot workflow
[skip ci]
2025-01-27 16:48:45 +08:00
住京华
9ee9e78974 Merge pull request #148 from ZhuJHua/dev
chore(*): update telegram bot workflow
2025-01-27 16:46:02 +08:00
ZhuJHua
e563afc43a chore(*): update telegram bot workflow
Update the telegram bot workflow to include OUTDATED_DEPENDENCIES variable in the environment.
2025-01-27 16:45:20 +08:00
住京华
c6bc93fdbd Merge pull request #147 from ZhuJHua/dev
feat(telegram-bot): enhance release notification workflow
2025-01-27 16:43:17 +08:00
ZhuJHua
ac01624def feat(telegram-bot): enhance release notification workflow
- Enable manual triggering of the workflow via `workflow_dispatch`
- Update the workflow to obtain release information using the GitHub API
- Update the format of the message to the user
2025-01-27 16:42:28 +08:00
住京华
4e662f9b96 Merge pull request #146 from ZhuJHua/dev
feat(telegram-bot): enhance release notification workflow
2025-01-27 16:40:08 +08:00
ZhuJHua
9a5b85cc02 feat(telegram-bot): enhance release notification workflow
- Enable manual triggering of the workflow via `workflow_dispatch`
- Update the workflow to obtain release information using the GitHub API
- Update the format of the message to the user
2025-01-27 16:39:28 +08:00
住京华
676ea4d763 Merge pull request #145 from ZhuJHua/dev
chore(*): bump version to 2.7.2+72
2025-01-27 15:48:40 +08:00
ZhuJHua
fb77e91a33 chore(*): bump version to 2.7.2+72
Update the application version in pubspec.yaml from 2.7.1+71 to 2.7.2+72.
2025-01-27 15:47:43 +08:00
住京华
1e220f67c3 Merge pull request #144 from ZhuJHua/dev
refactor(media): reconstruct the media library
2025-01-27 15:42:45 +08:00
ZhuJHua
5f62a228f0 refactor(media): reconstruct the media library, with more animation and better performance 2025-01-27 15:39:34 +08:00
ZhuJHua
be911fbd17 feat(ui): enhance image viewing and navigation
-   Improve image viewing experience by adding hero animations to images within `media_image_view.dart`, `image_embed.dart` for both quill and markdown, and `image_view.dart`.
-   Refactor diary title display by removing the arrow icon and using a single text widget in `diary_view.dart`.
-  Set  `showCupertinoParallax: false`  to false in all routes.
-   Change default transition to  `Transition.native` in `main.dart`.
2025-01-26 11:31:04 +08:00
ZhuJHua
509d8f17e2 feat(home): add shadow option for the HomeFab component
This commit introduces a `showShadow` option to the `HomeFabComponent`, enabling the display of a shadow effect for the floating action button. The `HomeView` is updated to set `showShadow` to true.
2025-01-26 11:00:19 +08:00
住京华
c6022db034 Merge pull request #143 from ZhuJHua/dev
feat(markdown): support markdown editing and embed rendering
2025-01-26 10:58:25 +08:00
ZhuJHua
686bd4f41a feat(markdown): support markdown editing and embed rendering
- Implement markdown editing feature with toolbar.
- Add rendering for image, audio, and video embeds in markdown content.
- Add markdown content preview.
- Refactor and improve drawing and photo picking features.
- Implement rendering of markdown syntax highlighting.
- Add markdown to text plain text conversion.
- Add markdown type for diary.
2025-01-26 10:57:37 +08:00
住京华
042da7d659 Merge pull request #142 from ZhuJHua/dev
feat(ui): optimize UI for desktop platform
2025-01-25 22:31:12 +08:00
ZhuJHua
00395a27ac feat(ui): enhance diary card text visibility and format
- Changed the color of the time text in both `grid_diary_card_view` and `list_diary_card_view` to `onSurfaceVariant` for better visibility.
- Adjusted the `maxLines` property in `list_diary_card_view` based on whether the diary has a title, enhancing content readability.
- Changed the format of the time in list_diary_card_view to `yMMMMEEEEd().add_Hms()`.
2025-01-25 22:28:13 +08:00
ZhuJHua
93a4325aec feat(pubspec): add logo path for desktop
Add `logo_path` to pubspec.yaml for specifying the desktop application logo.
2025-01-25 22:28:02 +08:00
ZhuJHua
0b5aa5f762 feat(msix): update msix config for store publishing
Update `identity_name`, `publisher`, and `publisher_display_name` in `msix_config` for Microsoft Store publishing.
2025-01-25 16:43:14 +08:00
ZhuJHua
c9fd39561f feat(msix): update msix configuration for store
Update `display_name`, `publisher_display_name`, `identity_name`, and `publisher` in `msix_config` for store publishing.
2025-01-25 16:40:48 +08:00
ZhuJHua
ad32aa616a chore(*): adjust msix_config settings in pubspec.yaml
Refactor the msix_config in `pubspec.yaml` by changing the indentation of the settings.
2025-01-25 16:37:55 +08:00
ZhuJHua
41e6113a0a feat(msix): add msix configuration for store publishing
Adds display name, publisher display name, identity name and capabilities for publishing to the Microsoft Store.
2025-01-25 16:36:01 +08:00
ZhuJHua
5cba840f80 feat(ui): add simple window button support for windows 2025-01-25 16:08:18 +08:00
ZhuJHua
2478c9c932 feat(ui): refine window buttons and UI components
- Replaced `IconButton` with `IconButton.filled` and adjusted icon sizes in `HomeFabView`.
- Added tooltips to buttons in `HomeFabView` for clarity.
- Improved `WindowButtons` widget to only display on Windows and provide an integrated dragging area, removed unnecessary code.
- Adjusted padding and spacing for MacOS in the navigation rail in `HomePage`.
- Modified `AdaptiveBackground` to simplify layout and remove `appWindow.startDragging()` from the background, use `GestureDetector` instead.
- Added `WindowButtons` at the top of the main application window for better integration.
2025-01-25 15:48:11 +08:00
ZhuJHua
67bf72284f style: code clean 2025-01-25 14:19:31 +08:00
ZhuJHua
022c4bb60d fix(*): remove pull to refresh at desktop platform 2025-01-25 14:19:03 +08:00
ZhuJHua
5fe6d66d48 fix(ui): add microsoft yahei ui as default font at windows 2025-01-25 14:18:14 +08:00
ZhuJHua
3584cca5c9 feat(text): optimize ellipsis text rendering
This commit optimizes the rendering of ellipsis text by:

-   Implementing a more efficient algorithm for truncating text.
-   Using `TextPainter.didExceedMaxLines` to detect overflow.
-   Adding support for custom ellipsis strings.
-   Fixing the layout logic for text width calculation.
-   Removing unnecessary `context` and adding `textStyle` optional parameters.
-   Updating code comments to be clearer.
2025-01-25 11:25:44 +08:00
ZhuJHua
58ca34bcf9 feat(about): enhance confetti effect and update duration
- Increased the duration of the confetti animation from 2 to 4 seconds.
- Updated confetti colors to a wider range, including red, orange, yellow, green, cyan, blue, and purple.
- Refactor code to remove extra `SafeArea` widget.
2025-01-25 11:25:18 +08:00
ZhuJHua
3c05149bed chore: update shared_preferences_android to 2.4.3
Update the version of `shared_preferences_android` from 2.4.2 to 2.4.3 in `pubspec.lock`.
2025-01-25 09:56:06 +08:00
ZhuJHua
4e525f4d30 feat(lint): add more lint rules 2025-01-25 09:49:17 +08:00
ZhuJHua
6ff78e4538 feat(markdown): add markdown preview support 2025-01-25 09:21:13 +08:00
ZhuJHua
502df877c1 feat(media): optimize UI layout 2025-01-25 09:20:07 +08:00
ZhuJHua
875edb6dba feat(about): Add easter eggs 2025-01-25 09:18:54 +08:00
ZhuJHua
7a2fe21a21 chore(deps): bump shared_preferences, waterfall_flow, slang_build_runner and other dependencies
Bumps [shared_preferences](https://pub.dev/packages/shared_preferences) from 2.3.5 to 2.4.0.
Bumps [waterfall_flow](https://pub.dev/packages/waterfall_flow) from 3.1.0 to 3.1.1.
Bumps [slang_build_runner](https://pub.dev/packages/slang_build_runner) from 4.4.0 to 4.4.2.
Also bumps other dependencies:
- glob from 2.1.2 to 2.1.3
- image_picker_macos from 0.2.1+1 to 0.2.1+2
2025-01-24 18:11:15 +08:00
ZhuJHua
c9d626ed3d fix(ui): improve desktop page switching performance
Add a GlobalKey to the AnimatedSwitcher to prevent unnecessary rebuilds and optimize desktop page switching performance.
2025-01-23 13:29:47 +08:00
ZhuJHua
0d0c95b78c feat(ui): optimize UI details
- Improve scrollbar theme.
- Add overlay color to TabBar.
- Add icon to PopupMenuButton.
- Update HomeFab icons and add label.
- Update placeholder and empty view in DiaryTabView.
- Update NavigationBar icons.
2025-01-23 02:47:45 +08:00
ZhuJHua
aa40bdb9ab feat(ui): optimize home page ui
Optimize the home page UI for desktop and mobile, including:
- Added a background for desktop.
- Added a draggable area at the top for desktop.
- Added FABs with animations for diary creation.
- Added a navigation bar for mobile.
- Added a to-top button for both desktop and mobile.
2025-01-23 01:09:45 +08:00
ZhuJHua
f22231ff33 refactor(*): optimize project structure 2025-01-23 01:06:57 +08:00
住京华
feed024495 Merge pull request #139 from ZhuJHua/dev
chore: update Flutter version to 3.27.3
2025-01-22 14:30:22 +08:00
ZhuJHua
c94499ad43 chore: update Flutter version to 3.27.3
Update the Flutter version to 3.27.3 and adjust the minimum SDK constraints in pubspec.yaml. Update the Flutter version badge in the README files.
2025-01-22 14:29:22 +08:00
住京华
c36a771405 Merge pull request #138
chore: refine release notification workflow
2025-01-22 11:21:25 +08:00
ZhuJHua
c67b13ecd3 chore: refine release notification workflow
Refine the release notification workflow to:
- Remove manual workflow dispatch trigger.
- Extract release information directly from GitHub event data.
- Format the Telegram message using markdown for better readability.
2025-01-22 11:21:07 +08:00
住京华
630849e189 Merge pull request #137
chore(ci): enhance telegram notification with release details
2025-01-22 10:38:58 +08:00
ZhuJHua
2ce60b0a21 chore(ci): enhance telegram notification with release details
Update the telegram notification workflow to fetch and include the latest release details in the message.
This includes the release name, tag, notes, and URL, providing more context for users.
2025-01-22 10:38:36 +08:00
住京华
47a6eb8baa Merge pull request #136
chore: simplify telegram release notification
2025-01-22 10:33:57 +08:00
ZhuJHua
cd4e699878 chore: simplify telegram release notification
Simplified the Telegram release notification by removing the assets list and reformatting the message for better readability.
2025-01-22 10:33:34 +08:00
住京华
b5978de312 Merge pull request #135
feat(*): add workflow to send release notifications to Telegram
2025-01-22 10:21:00 +08:00
ZhuJHua
bc5f9ee3b8 feat(*): add workflow to send release notifications to Telegram
This change introduces a new workflow that sends release notifications to a specified Telegram channel using the `appleboy/telegram-action`.
The workflow is triggered on new releases and includes the release name, tag, release notes, assets, and a link to the release page in the notification message.
2025-01-22 10:20:12 +08:00
住京华
246b17ab68 Merge pull request #134
feat(category): init support nested multi-level classification
2025-01-22 10:17:10 +08:00
ZhuJHua
d525ddaa70 feat(category): init support nested multi-level classification
Added `parentId` and `level` fields to the Category model to support nested multi-level classification. Also added an index for the `level` field.
2025-01-22 10:16:49 +08:00
住京华
0354e1af37 Merge pull request #133
chore(deps): bump flutter_quill from 11.0.0-dev.20 to 11.0.0-dev.21
2025-01-22 10:16:01 +08:00
ZhuJHua
df1020b7ee chore(deps): bump flutter_quill from 11.0.0-dev.20 to 11.0.0-dev.21
Remove unused dependencies:
- fading_edge_scrollview
- google_fonts
- http_status_code
- pinput
- simple_gesture_detector
- table_calendar
2025-01-22 10:15:21 +08:00
住京华
ca0f81a09c Merge pull request #132 from ZhuJHua/dev
feat(readme): update Flutter and Dart version requirements
2025-01-21 17:16:51 +08:00
ZhuJHua
7fee9ae8ae feat(readme): update Flutter and Dart version requirements
- Updated Flutter SDK requirement to >= 3.27.2 Stable.
- Updated Dart requirement to >= 3.6.1.
- Added a note encouraging the use of the latest Flutter version and recommending FVM for Flutter version management.
2025-01-21 17:16:20 +08:00
住京华
17a7ee7ed9 Merge pull request #131 from ZhuJHua/dev
feat(dependencies): update SDK and package versions
2025-01-21 17:07:07 +08:00
ZhuJHua
f7da792bdb feat(dependencies): update SDK and package versions
- Updates the Dart SDK version to `>=3.6.1`.
- Updates the Flutter version to `>=3.27.2`.
- Updates the `syncfusion_flutter_sliders` package to version `28.1.41`.
- Adds `msix_config` for application configuration.
2025-01-21 17:06:20 +08:00
住京华
1de5ae87ae Merge pull request #130 from ZhuJHua/dev
feat(android): update NDK and Kotlin versions
2025-01-21 13:28:20 +08:00
ZhuJHua
f84f636529 feat(android): update NDK and Kotlin versions
- Updates the NDK version to "27.2.12479018" in `android/app/build.gradle`.
- Updates the Kotlin Android plugin version to "2.1.0" in `android/settings.gradle`.
- Add abiFilters 'arm64-v8a'
2025-01-21 13:27:46 +08:00
住京华
3709b4fd57 Merge pull request #129 from ZhuJHua/dev
chore(readme): update readme for new features and improvements
2025-01-21 13:27:05 +08:00
ZhuJHua
6eba9a1a1e chore(readme): update readme for new features and improvements 2025-01-21 13:26:45 +08:00
住京华
865234514e Merge pull request #128 from ZhuJHua/dev
refactor(*): organize the project structure
2025-01-21 10:02:53 +08:00
ZhuJHua
c4f5780dab refactor(*): organize the project structure and use absolute paths uniformly 2025-01-21 10:00:44 +08:00
住京华
b31c7415a9 Merge pull request #127 from ZhuJHua/dev
feat(markdown): add support for markdown diary
2025-01-21 09:47:30 +08:00
ZhuJHua
581655b2dd feat(markdown): add support for markdown diary
- Add markdown_bar component for markdown editing.
- Update edit page to support markdown diary type.
- Update home page floating button to include markdown diary.
- Update edit_logic to include markdown controller.
- Update markdown and remove markdown_toolbar package.
- Add support to preview markdown.
- Add support to markdown_bar for markdown editing.
- Add support to markdown parser for markdown editing.
- Update home page floating button to include markdown diary.
2025-01-21 09:47:04 +08:00
住京华
3c5dea31ab Merge pull request #124 from ZhuJHua/dev
feat(ui): adjust lock page and correct localization
2025-01-19 21:44:40 +08:00
ZhuJHua
e4c356560d feat(ui): adjust lock page and correct localization
-   Adjusted the lock page's `AppBar` to remove the leading widget and prevent auto-implication.
-   Made the lock page's `AppBar` to extend behind the body.
-   Corrected the "weather" localization to "Weather".
2025-01-19 21:44:02 +08:00
住京华
e55358cfbf Merge pull request #123 from ZhuJHua/dev
chore(*): update flutter & dependent versions
2025-01-19 16:53:42 +08:00
ZhuJHua
93d378637e chore(deps): update flutter_quill to 11.0.0-dev.20 2025-01-19 16:50:24 +08:00
ZhuJHua
589a87b30d chore(flutter): update flutter version to 3.27.2 2025-01-19 16:50:12 +08:00
ZhuJHua
51e87f9ae6 build(macos): update code signing and provisioning settings 2025-01-19 16:49:42 +08:00
住京华
c0d3d60674 Merge pull request #122 from ZhuJHua/dev
chore(*): bump version to 2.7.1+71
2025-01-19 07:16:07 +08:00
ZhuJHua
08df9bba04 chore(*): bump version to 2.7.1+71
The version number in `pubspec.yaml` has been updated from `2.7.0+70` to `2.7.1+71`.
2025-01-19 07:15:12 +08:00
住京华
1e4b75b414 Merge pull request #121 from ZhuJHua/dev
chore(readme): update screenshots for different languages
2025-01-19 07:13:37 +08:00
ZhuJHua
137a1f3c98 chore(readme): update screenshots for different languages
- Replace `mobile_dark.webp`, `mobile_light.webp`, `desktop_dark.webp`, and `desktop_light.webp` with language-specific screenshots in the `res/screenshot/` directory.
- Update the references to these screenshots in `README.md` and `README.zh.md` to include language indicators.
2025-01-19 07:13:00 +08:00
住京华
59caeb3f28 Merge pull request #120 from ZhuJHua/dev
fix(calendar): filter visible diaries
2025-01-19 07:08:55 +08:00
ZhuJHua
042a715595 fix(calendar): filter visible diaries
Modify Isar database query to only get visible diaries.
2025-01-19 07:07:51 +08:00
住京华
3a55579f33 Merge pull request #119 from ZhuJHua/dev
feat(l10n): add localization for diary operations and data sync
2025-01-19 07:05:57 +08:00
ZhuJHua
7736c72780 feat(l10n): add localization for diary operations and data sync
- Add `diaryDelete`, `diaryEdit`, `diaryShare`, `diaryCount` and `dataSync` translations to `intl_en.arb` and `intl_zh.arb`.
- Update diary list and diary details to use new localization strings.
- Add `sensors_plus` plugin to Podfile.lock.
- Update `diary_view` with localized strings
- update `diary_details_view` with localized strings
2025-01-19 07:05:16 +08:00
住京华
cabb760599 Merge pull request #118 from ZhuJHua/dev
feat(edit): add audio file selection
2025-01-19 06:06:24 +08:00
ZhuJHua
86f337c0a2 feat(edit): add audio file selection 2025-01-19 06:05:09 +08:00
住京华
784297f007 Merge pull request #117 from ZhuJHua/dev
feat(l10n): add full localization support
2025-01-19 05:33:53 +08:00
ZhuJHua
5af6d9080b feat(l10n): add full localization support 2025-01-19 05:32:41 +08:00
住京华
074b2e0631 Merge pull request #116 from ZhuJHua/dev
chore(ci): add dependency installation step for rust builder
2025-01-19 01:57:18 +08:00
ZhuJHua
4f12267b3f chore(ci): add dependency installation step for rust builder
Adds a step to install dependencies for the Rust Builder project within the Flutter analyze workflow. This ensures all necessary packages are available for the analyze process.
2025-01-19 01:56:50 +08:00
住京华
9e1ffc49e3 Merge pull request #115 from ZhuJHua/dev
ci(workflow): update flutter analyze workflow
2025-01-19 01:52:30 +08:00
ZhuJHua
b3dddaabda ci(workflow): update flutter analyze workflow
- Add `workflow_dispatch` trigger.
- Change `cwd` to `working-directory`.
2025-01-19 01:51:33 +08:00
住京华
81657dbe69 Merge pull request #114 from ZhuJHua/dev
chore(ci): install dependencies for rust builder project
2025-01-19 01:47:35 +08:00
ZhuJHua
76365ece09 chore(ci): install dependencies for rust builder project in flutter analyze workflow
The `flutter analyze` workflow has been updated to install dependencies for the `rust_builder` project, ensuring that the analysis process is comprehensive.
2025-01-19 01:45:43 +08:00
住京华
671aa29b3c Merge pull request #113
chore(ci): adjust flutter analyze trigger
2025-01-19 01:37:43 +08:00
ZhuJHua
d285b74131 chore(ci): adjust flutter analyze trigger
Update the workflow to only trigger on pull requests to `master`. Removed push trigger.
2025-01-19 01:37:21 +08:00
住京华
3b7c46c815 Merge pull request #112
ci(*): add flutter analyze workflow and dynamic flutter version support
2025-01-19 01:35:58 +08:00
ZhuJHua
0222f7b352 ci(*): add flutter analyze workflow and dynamic flutter version support
- Introduced a new workflow, `flutter-analyze.yml`, to perform Flutter code analysis.
- Added dynamic Flutter version selection based on the `.fvmrc` file or defaulted to the latest stable version.
- Modified the `build.yml` workflow to also use the dynamic Flutter version.
- Added the installation of `jq` to read the Flutter version from `.fvmrc`.
2025-01-19 01:35:25 +08:00
住京华
c30b84f668 Merge pull request #111
build(android): upgrade AGP to 8.8.0
2025-01-19 01:12:24 +08:00
ZhuJHua
04c37d3465 Merge remote-tracking branch 'origin/dev' into dev 2025-01-19 01:11:56 +08:00
ZhuJHua
b05c71a69c build(android): upgrade AGP to 8.8.0 2025-01-19 01:11:03 +08:00
ZhuJHua
2cd0661ee9 build(android): upgrade AGP to 8.8.0 2025-01-19 01:09:59 +08:00
住京华
ca40667068 Merge pull request #110
* ci(*): optimize release note generation logic
2025-01-19 01:02:07 +08:00
ZhuJHua
7a5df7605e ci(*): optimize release note generation logic 2025-01-19 00:59:19 +08:00
住京华
d6012c6499 Merge pull request #109 from ZhuJHua/dev
fix(*): fix ci
2025-01-17 23:30:36 +08:00
ZhuJHua
be5814c6a0 fix(*): fix ci
[skip ci]
2025-01-17 23:30:10 +08:00
住京华
3aab7784c6 Merge pull request #108 from ZhuJHua/dev
fix(*): fix ci
2025-01-17 23:13:56 +08:00
ZhuJHua
df95b1e252 fix(*): fix ci
[skip ci]
2025-01-17 23:12:45 +08:00
住京华
e103f3fd8b fix(ci): fix ci (#107)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0

* build(action): fix workflow

* fix(ci): add release drafter

[skip ci]

* chore(*): update readme

[skip ci]

* fix(*): fix ci

[skip ci]

* fix(*): fix ci

[skip ci]

* fix(*): fix ci

[skip ci]
2025-01-17 22:38:22 +08:00
住京华
e951a59d9d fix(ci): fix ci (#106)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0

* build(action): fix workflow

* fix(ci): add release drafter

[skip ci]

* chore(*): update readme

[skip ci]

* fix(*): fix ci

[skip ci]

* fix(*): fix ci

[skip ci]
2025-01-17 22:00:27 +08:00
ZhuJHua
b66ff57c07 fix(*): fix ci
[skip ci]
2025-01-17 21:59:31 +08:00
ZhuJHua
8250c7a0bf Merge remote-tracking branch 'origin/dev' into dev 2025-01-17 21:54:22 +08:00
ZhuJHua
822719bdeb fix(*): fix ci
[skip ci]
2025-01-17 21:53:56 +08:00
住京华
f3e735b886 fix(ci): fix workflow error (#105)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0

* build(action): fix workflow

* fix(ci): add release drafter

[skip ci]

* chore(*): update readme

[skip ci]

* fix(*): fix ci

[skip ci]
2025-01-17 21:18:48 +08:00
住京华
3e0f437a0e Merge branch 'master' into dev 2025-01-17 21:18:30 +08:00
ZhuJHua
e3d27db92e fix(*): fix ci
[skip ci]
2025-01-17 21:16:52 +08:00
住京华
25d0858a76 Dev (#104)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0

* build(action): fix workflow

* fix(ci): add release drafter

[skip ci]

* chore(*): update readme

[skip ci]
2025-01-17 19:56:02 +08:00
ZhuJHua
8365641f74 chore(*): update readme
[skip ci]
2025-01-17 19:55:20 +08:00
ZhuJHua
691ff9a65d fix(ci): add release drafter
[skip ci]
2025-01-17 19:47:32 +08:00
住京华
793c248b2a Fix ci (#103)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0

* build(action): fix workflow
2025-01-17 19:06:20 +08:00
住京华
123d1842dc Merge branch 'master' into dev 2025-01-17 19:06:11 +08:00
ZhuJHua
b7906f0114 build(action): fix workflow 2025-01-17 19:04:06 +08:00
住京华
2b279f59af Release at 2.7.0 (#102)
* build(pub): upgrade dependencies

* feat(feedback): add new feedback

* fix(ci): fix work flows

now the work flows only build apk

* build(pub): upgrade dependencies

* fix(media_view): fix file time sorting bug in media library

* feat(lock): automatically invoke biometrics on startup

* refactor(ui): improve ui

* fix(sync): fix local sync exception

* style(*): code clean

* feat(edit): add multi image picker support

* refactor(ui): limit the maximum height of media files in rich text to 300

* feat(webdav): added more option for webdav

* fix(*): fix unexpected issue causing immediate lockup

* chore(*): release at 2.7.0
2025-01-17 18:28:34 +08:00
ZhuJHua
cfd3b66cc5 chore(*): release at 2.7.0 2025-01-17 18:02:27 +08:00
ZhuJHua
dfd1078b11 fix(*): fix unexpected issue causing immediate lockup 2025-01-17 18:02:11 +08:00
ZhuJHua
95b877cae2 feat(webdav): added more option for webdav 2025-01-17 18:01:26 +08:00
ZhuJHua
f67d073e51 refactor(ui): limit the maximum height of media files in rich text to 300 2025-01-17 18:00:17 +08:00
ZhuJHua
bd2d91b07a feat(edit): add multi image picker support 2025-01-17 17:59:14 +08:00
ZhuJHua
b1035b5336 style(*): code clean 2025-01-17 16:49:11 +08:00
ZhuJHua
1812133c63 fix(sync): fix local sync exception 2025-01-17 16:42:15 +08:00
ZhuJHua
0fcad41525 refactor(ui): improve ui 2025-01-17 16:41:36 +08:00
ZhuJHua
93f4fa1147 feat(lock): automatically invoke biometrics on startup 2025-01-17 16:40:28 +08:00
ZhuJHua
a1ff7f8cbc fix(media_view): fix file time sorting bug in media library 2025-01-17 13:59:04 +08:00
ZhuJHua
d917e4384c build(pub): upgrade dependencies 2025-01-17 13:56:22 +08:00
ZhuJHua
7b6c923737 fix(ci): fix work flows
now the work flows only build apk
2025-01-17 13:55:54 +08:00
ZhuJHua
09de3e1da0 feat(feedback): add new feedback 2025-01-15 23:58:20 +08:00
住京华
685bb4e2dd Update README.en.md (#101) 2025-01-15 14:46:16 +08:00
住京华
66de7b3daf Update README.md (#100) 2025-01-15 14:44:10 +08:00
ZhuJHua
90bf879eea build(pub): upgrade dependencies 2025-01-14 23:52:18 +08:00
住京华
e927fb769b Update README.en.md (#99) 2025-01-13 04:01:00 +08:00
住京华
84bc3532bf Update README.md (#98) 2025-01-13 03:59:34 +08:00
住京华
17da3a5025 Merge pull request #97 from ZhuJHua/dev
Dev
2025-01-13 03:54:30 +08:00
住京华
c68f4078ba Merge branch 'master' into dev 2025-01-13 03:54:16 +08:00
ZhuJHua
ec13f38366 chore(*): update readme 2025-01-13 03:49:47 +08:00
ZhuJHua
9c694e0535 chore(*): update readme 2025-01-13 03:43:40 +08:00
住京华
8e4d187e35 Merge pull request #96 from ZhuJHua/dev
Dev
2025-01-13 03:42:42 +08:00
ZhuJHua
f45007a51d refactor(ui): improve ui 2025-01-13 03:28:51 +08:00
ZhuJHua
a22ad6219f build(pub): upgrade dependencies 2025-01-12 23:58:57 +08:00
ZhuJHua
6be4f85408 feat(private): add private mode 2025-01-09 23:58:28 +08:00
ZhuJHua
ee9e73671f build(pub): update dependencies 2025-01-08 13:40:02 +08:00
住京华
fa7d34ad7b Merge pull request #94 from ZhuJHua/dev
Refactor
2025-01-08 13:27:03 +08:00
ZhuJHua
6cc4ee4795 refactor(*): use refreshed to replace getx &use in app webview 2025-01-08 13:25:26 +08:00
ZhuJHua
ac20514093 fix(log): fix logger 2025-01-07 23:55:03 +08:00
ZhuJHua
e5bc11a2be feat(diary): init support for multi diary 2025-01-07 00:17:07 +08:00
ZhuJHua
eca54601b0 fix(logger): fix logger can't export 2025-01-07 00:15:23 +08:00
ZhuJHua
bd262c7418 fix(webdav): fix webdav error 2025-01-07 00:12:38 +08:00
ZhuJHua
41160ae27f style(*): code clean 2025-01-06 23:59:36 +08:00
住京华
85f30c5fcf Merge pull request #92 from ZhuJHua/dev
Improve ui
2025-01-06 01:23:25 +08:00
ZhuJHua
f871cb66ee style(*): code clean up
[skip ci]
2025-01-06 01:18:57 +08:00
ZhuJHua
67c421991d refactor(ui): improve ui 2025-01-06 01:05:09 +08:00
ZhuJHua
e155f69e87 refactor(ui): improve ui 2025-01-05 23:58:53 +08:00
住京华
6d569af9f3 Merge pull request #91 from ZhuJHua/dev
Release at 2.6.5
2025-01-02 10:33:39 +08:00
ZhuJHua
19cabc1b13 chore(*): release at 2.6.5 2025-01-02 10:31:33 +08:00
ZhuJHua
3065159ec2 fix(action): fix github action 2025-01-02 10:31:21 +08:00
ZhuJHua
333ff5e80d fix(font): fix variable font misans vf 2025-01-02 10:29:59 +08:00
ZhuJHua
fe2c81bdc8 refactor(ui): remove useless widget & add try catch for hitokoto 2025-01-02 10:01:25 +08:00
ZhuJHua
36b7d64b4f refactor(ui): add animated switcher to fade 2025-01-02 09:46:13 +08:00
ZhuJHua
0dd871ffd1 refactor(home): new ui for home page 2025-01-02 09:45:31 +08:00
ZhuJHua
8dd3639d07 feat(*): add dev mode 2025-01-01 23:59:04 +08:00
ZhuJHua
f253b0e63d feat(ui): add marquee to fix long text 2025-01-01 23:55:35 +08:00
ZhuJHua
0327b2c0a3 fix(ui): fix text painter did not match custom text scale 2025-01-01 23:41:38 +08:00
ZhuJHua
e3be3746ab feat(hitokoto): add hitokoto in title 2025-01-01 23:38:23 +08:00
ZhuJHua
a4005eddff feat(*): improve category manager 2025-01-01 22:54:42 +08:00
ZhuJHua
80f8dac274 fix(webdav): fix webdav error when creating dir 2025-01-01 21:49:24 +08:00
ZhuJHua
d5b212d2a1 style(*): code cleanup 2024-12-31 10:58:57 +08:00
ZhuJHua
df9c343936 refactor(ui): new bottom sheet ui & new theme color picker 2024-12-31 10:56:34 +08:00
ZhuJHua
5c5d608c3a fix(logger): fix can't catch error log at release mode 2024-12-31 10:55:33 +08:00
ZhuJHua
ec7d2c6a3f fix(android): fix release build error on android platform 2024-12-31 10:53:06 +08:00
ZhuJHua
36296edaa9 refactor(*): add some notice when catching error 2024-12-30 11:51:46 +08:00
ZhuJHua
d13760c09e style(code): cleanup the code
[skip ci]
2024-12-30 10:31:10 +08:00
ZhuJHua
1f8baf3258 feat(fvm): add fvm to manager flutter version 2024-12-26 23:58:43 +08:00
ZhuJHua
cde4b0db69 chore(*): fix isar build error 2024-12-26 23:58:13 +08:00
ZhuJHua
9363507183 feat(ui): optimize desktop operating experience
Closes #79
2024-12-22 23:27:48 +08:00
ZhuJHua
0b6e335d3b feat(ui): optimize image and video viewing
Closes #89
2024-12-22 23:25:20 +08:00
ZhuJHua
d6acb97e40 feat(font): add support for custom font
Closes #85
2024-12-22 16:03:18 +08:00
住京华
453d3ca39e Merge pull request #84 from ZhuJHua/readme
chore(*): update readme
2024-12-18 18:19:33 +08:00
ZhuJHua
82f63f0f93 chore(*): update readme 2024-12-18 18:19:03 +08:00
住京华
23a030b450 Merge pull request #83 from ZhuJHua/readme
chore(*): update readme
2024-12-18 15:09:37 +08:00
ZhuJHua
b0c77ddaeb chore(*): update readme 2024-12-18 15:08:34 +08:00
ZhuJHua
15181e29e4 feat(category): init support nested multi-level classification 2024-12-18 15:01:41 +08:00
住京华
bd9cbd8189 Merge pull request #82 from ZhuJHua/dev
Update readme
2024-12-18 10:54:54 +08:00
ZhuJHua
c7d5a571b1 chore(*): update readme 2024-12-18 10:52:58 +08:00
ZhuJHua
55cbb8f6ae chore(*): update readme 2024-12-18 10:46:32 +08:00
住京华
703d780d92 Merge pull request #81 from ZhuJHua/dev
fix(fix display error when local send):
2024-12-18 10:10:09 +08:00
ZhuJHua
dbcd3f74ab fix(fix display error when local send):
Closes #80
2024-12-18 10:08:24 +08:00
住京华
06f9dcf2cf Merge pull request #77 from ZhuJHua/dev
Release at 2.6.4 as hotfix
2024-12-16 03:54:32 +08:00
ZhuJHua
8cf07ba940 chore(*): release at 2.6.4 as hotfix 2024-12-16 03:51:50 +08:00
ZhuJHua
a7e10c3892 fix(diary): home page did not remove deleted diary 2024-12-16 03:47:58 +08:00
住京华
d0beed52c5 Merge pull request #76 from ZhuJHua/dev
Fix can't start form old version
2024-12-15 22:29:19 +08:00
ZhuJHua
f18fa856a2 fix(data): fix data merge error to 2.6.3 2024-12-15 22:01:07 +08:00
ZhuJHua
e95a820d3f fix(data): fix date merge error 2024-12-15 21:45:45 +08:00
住京华
8afda6e8ef Merge pull request #75 from ZhuJHua/dev
Release at v2.6.3
2024-12-15 21:16:03 +08:00
ZhuJHua
b94b3f666b refactor(ui): improve ui 2024-12-15 21:15:10 +08:00
ZhuJHua
13dc2f4e50 chore(*): release at 2.6.3 2024-12-15 20:48:31 +08:00
ZhuJHua
2316e0d2ec fix(toast): remove flutter hook 2024-12-15 20:47:46 +08:00
ZhuJHua
73706eb0f9 fix(location): fix can't get location on macos 2024-12-15 20:47:14 +08:00
ZhuJHua
152e20aea0 refactor(ui): make record_sheet_view higher 2024-12-15 16:53:46 +08:00
ZhuJHua
c01abf05e1 refactor(ui): refactor rich text adding media 2024-12-15 16:52:56 +08:00
ZhuJHua
e651cdce88 refactor(ui): refactor ui 2024-12-15 04:00:29 +08:00
ZhuJHua
90bbc7f7a9 feat(media): improve media 2024-12-15 03:10:39 +08:00
ZhuJHua
c4a5ca9959 refactor(l10n): refactor localization 2024-12-15 02:06:35 +08:00
ZhuJHua
cada631d26 feat(media): improve media library 2024-12-15 02:06:07 +08:00
ZhuJHua
523535ba16 feat(save_image): add save image to local
Closes #46
2024-12-14 23:55:40 +08:00
ZhuJHua
1b9b16b3e1 fix(local_sync): category sync error 2024-12-14 23:54:32 +08:00
ZhuJHua
bd06ee66b3 style(*): code clean 2024-12-14 20:05:19 +08:00
ZhuJHua
059b3b37e3 fix(log): error log did not write into file 2024-12-14 20:03:50 +08:00
ZhuJHua
4b104af23a refactor(calendar): better calendar view
Closes #72
2024-12-14 20:03:21 +08:00
ZhuJHua
d7ce5713aa feat(webdav): improve webdav util 2024-12-14 20:02:02 +08:00
ZhuJHua
ff1a8f5cc8 fix(lab): key did not update after input 2024-12-14 20:00:27 +08:00
ZhuJHua
366e33ad49 fix(android): fix splash screen not full 2024-12-14 19:59:31 +08:00
ZhuJHua
377d838134 feat(sync): add local sync at home page 2024-12-14 19:58:10 +08:00
ZhuJHua
8d5ea87124 fix(webdav): local did not delete 2024-12-13 21:28:54 +08:00
ZhuJHua
db14008af1 feat(*): add try catch 2024-12-13 20:54:13 +08:00
ZhuJHua
9c70360242 perf(*): use isolate to improve performance 2024-12-13 20:53:38 +08:00
住京华
8ab5b3f8ea Merge pull request #73 from ZhuJHua/dev
improve performance
2024-12-13 16:16:06 +08:00
ZhuJHua
96627cab42 perf(*): improve performance 2024-12-13 16:13:59 +08:00
ZhuJHua
57bc494382 feat(webdav): improve webdav behavior 2024-12-13 01:53:10 +08:00
ZhuJHua
e206fdeb75 chore(isar): gen code 2024-12-13 01:52:13 +08:00
住京华
5f6b04d917 Merge pull request #70 from ZhuJHua/dev
chore(*): update readme
2024-12-12 10:26:47 +08:00
ZhuJHua
13efeea393 chore(*): update readme 2024-12-12 10:26:18 +08:00
住京华
17c1da5687 Merge pull request #68 from ZhuJHua/dev
feat(icon): add new icon for desktop
2024-12-12 02:38:57 +08:00
ZhuJHua
f84f5ca40b fix(logic): fix did not jump to new category tabview when add category 2024-12-12 02:37:32 +08:00
ZhuJHua
b376fc9219 perf(image): improve image performance 2024-12-12 02:16:25 +08:00
ZhuJHua
6747fb6bec refactor(*): remove hitokoto 2024-12-12 02:15:34 +08:00
ZhuJHua
5c5028c490 fix(layout): fix layout 2024-12-12 02:05:10 +08:00
ZhuJHua
f11d524952 fix(desktop): improve desktop experience 2024-12-12 01:24:41 +08:00
ZhuJHua
4ad72a592e fix(layout): fix home page layout overflow
Closes #69
2024-12-12 01:23:44 +08:00
ZhuJHua
7dfb215eec feat(icon): add new icon for desktop 2024-12-12 00:28:37 +08:00
住京华
403b47793b Merge pull request #67 from ZhuJHua/dev
chore(*): hotfix at 2.6.1
2024-12-11 22:55:58 +08:00
ZhuJHua
3103d650e4 chore(*): hotfix at 2.6.1 2024-12-11 22:55:20 +08:00
住京华
6e27cd0821 Merge pull request #66 from ZhuJHua/dev
fix(*): can't start on some devices
2024-12-11 22:49:15 +08:00
ZhuJHua
d98e9a9601 fix(*): can't start on some devices
Closes #65
2024-12-11 22:48:40 +08:00
住京华
17b16f021b Merge pull request #64 from ZhuJHua/dev
bug fix
2024-12-11 19:22:10 +08:00
ZhuJHua
ef1970888e fix(rust): frb version
Closes #63
2024-12-11 19:21:21 +08:00
ZhuJHua
8c6d34e6f1 refactor(diary_detail): remove squad 2024-12-11 19:20:41 +08:00
住京华
3f5ee19589 Merge pull request #62 from ZhuJHua/dev
fix(webdav): behavior when has no options
2024-12-11 04:51:28 +08:00
ZhuJHua
eb2d0fe2b4 fix(webdav): behavior when has no options 2024-12-11 04:50:26 +08:00
住京华
a7019130b9 Merge pull request #61 from ZhuJHua/dev
bug fix
2024-12-11 03:57:59 +08:00
ZhuJHua
0341ae7b89 fix(data): fix data merge error 2024-12-11 03:56:58 +08:00
ZhuJHua
a10b12af07 refactor(*): remove font setting 2024-12-11 03:52:10 +08:00
住京华
90caf19a4a Merge pull request #60 from ZhuJHua/dev
Release at 2.6.0
2024-12-11 03:38:42 +08:00
ZhuJHua
7ff119fc05 build(pubsepc): remove unused dependencies 2024-12-11 03:36:46 +08:00
ZhuJHua
cf649b48ff feat(*): add data merge to 2.6.0 2024-12-11 03:33:34 +08:00
ZhuJHua
3a072a2748 feat(edit): add auto select category
Closes #49
2024-12-11 02:57:16 +08:00
ZhuJHua
de2f1f4c2f fix(local_send): fix can't find ip at ethernet mode
Closes #44
2024-12-11 02:43:20 +08:00
ZhuJHua
faaf790f84 feat(webdav): improve webdav support
Closes #30
2024-12-11 02:33:29 +08:00
住京华
f49ac142b7 Merge pull request #59 from ZhuJHua/ZhuJHua-patch-3
Update README.en.md
2024-12-10 18:41:15 +08:00
住京华
c3166e1965 Update README.en.md 2024-12-10 18:41:01 +08:00
住京华
be4746da05 Merge pull request #58 from ZhuJHua/ZhuJHua-patch-2
Update README.md
2024-12-10 18:39:25 +08:00
住京华
7a0277e87a Update README.md 2024-12-10 18:39:12 +08:00
住京华
c85b1baceb Merge pull request #57 from ZhuJHua/ZhuJHua-patch-1
Add files via upload
2024-12-10 18:28:30 +08:00
住京华
7e7d721e11 Add files via upload 2024-12-10 18:28:15 +08:00
住京华
24eedd097b Merge pull request #56 from ZhuJHua/ZhuJHua-patch-1
Create dark.svg
2024-12-10 18:05:22 +08:00
住京华
4886007109 Create dark.svg 2024-12-10 18:05:08 +08:00
住京华
d89d3e3457 Merge pull request #55 from ZhuJHua/ZhuJHua-patch-1
Create light.svg
2024-12-10 17:58:42 +08:00
住京华
c43170d1cf Create light.svg 2024-12-10 17:58:29 +08:00
住京华
8e4cf6b997 Merge pull request #54 from ZhuJHua/ZhuJHua-patch-1
Create icon.svg
2024-12-10 14:28:36 +08:00
住京华
112de63c36 Create icon.svg 2024-12-10 14:28:24 +08:00
住京华
eaa0f7b883 Merge pull request #53 from ZhuJHua/dev
Prepare release at 2.6.0
2024-12-10 14:11:52 +08:00
ZhuJHua
8d760023e9 chore(release): prepare release version 2.6.0 2024-12-10 14:08:06 +08:00
ZhuJHua
2e0ce5cc97 feat(webdav): support webdav sync 2024-12-10 14:06:16 +08:00
ZhuJHua
4eec599592 feat(icon): use new app icon 2024-12-10 14:05:01 +08:00
ZhuJHua
61c8341e8c refactor(*): use the new flutter api to catch error 2024-12-06 23:56:35 +08:00
ZhuJHua
f9cdf4a994 feat(util): add keyboard listener 2024-12-04 23:28:14 +08:00
ZhuJHua
74a33ef320 build(*): platform build option 2024-12-03 21:11:22 +08:00
ZhuJHua
49bab7e4ac refactor(ui): improve ui 2024-12-03 21:10:35 +08:00
住京华
8c81afd646 Merge pull request #52 from ZhuJHua/ZhuJHua-patch-1
Create issue.yml
2024-12-03 12:07:43 +08:00
住京华
64271d06dc Create issue.yml 2024-12-03 12:07:25 +08:00
ZhuJHua
414c3ee5aa ci(*): add workflows 2024-12-02 12:16:37 +08:00
ZhuJHua
e0f7cab93b fix(image_compress): fix can't compress heif image
Closes #50
2024-12-01 22:42:43 +08:00
ZhuJHua
f37f491dd0 perf(*): improve perf at home page 2024-12-01 21:53:59 +08:00
ZhuJHua
4c431746b5 fix(ui): fixed layout issues with three-button navigation mode
Closes #51
2024-12-01 21:52:13 +08:00
ZhuJHua
1a19527b13 feat(*): add rich text and media editor
Closes #45,#28,#50
2024-12-01 08:00:44 +08:00
ZhuJHua
163d030cab fix(rust): fix string error in kmp 2024-12-01 07:51:33 +08:00
ZhuJHua
00e7c3a966 build(rust): generated rust builder 2024-12-01 02:32:40 +08:00
ZhuJHua
f7b19c043f feat(server): init server 2024-12-01 02:31:33 +08:00
ZhuJHua
ffa5bcaf4e chore(git): add attributes 2024-12-01 02:30:47 +08:00
ZhuJHua
64d81d198b build(rust): update dependencies 2024-11-28 23:51:16 +08:00
ZhuJHua
820586bcdf feat(webdav): init webdav util 2024-11-27 23:59:21 +08:00
ZhuJHua
95886edb3b feat(kmp): add kmp search use rust 2024-11-26 10:47:53 +08:00
ZhuJHua
d0be93dd64 build(pubspec): upgrade dependencies 2024-11-24 23:57:43 +08:00
住京华
f663afde08 Merge pull request #48 from ZhuJHua/dev
feat(server): init server support
2024-11-23 23:31:57 +08:00
ZhuJHua
0b3be6d7c9 feat(server): init server support
use ktor as server
2024-11-23 23:28:30 +08:00
住京华
e093b5cfcc Merge pull request #43 from ZhuJHua/dev
Release v2.4.9
2024-11-20 06:38:15 +08:00
ZhuJHua
1195a5d105 refactor(ui): improve ui 2024-11-20 06:13:42 +08:00
住京华
4e188a3784 Merge pull request #42 from ZhuJHua/dev
Merge dev to master
2024-11-19 02:33:58 +08:00
住京华
ef38f4d591 Merge pull request #40 from ZhuJHua/dev
fix(password): remove password error
2024-11-14 22:05:16 +08:00
住京华
64c85f6b20 Merge pull request #39 from ZhuJHua/dev
Release v2.4.8
2024-11-13 01:47:54 +08:00
住京华
77dd89ae1b Merge pull request #34 from ZhuJHua/dev
Release v2.4.8-rc
2024-11-12 14:47:08 +08:00
住京华
304a65b6d4 Merge pull request #25 from ZhuJHua/ZhuJHua-patch-3
Update main.yml
2024-10-28 00:49:43 +08:00
住京华
048e253030 Update main.yml 2024-10-28 00:49:30 +08:00
住京华
56ae315c2f Merge pull request #24 from ZhuJHua/ZhuJHua-patch-2
Update main.yml
2024-10-28 00:41:15 +08:00
住京华
715f5634a5 Update main.yml 2024-10-28 00:41:02 +08:00
住京华
036e588e4d Merge pull request #23 from ZhuJHua/ZhuJHua-patch-1
Update main.yml
2024-10-28 00:39:16 +08:00
住京华
d4348b30b3 Update main.yml 2024-10-28 00:39:06 +08:00
住京华
aacf2684e1 Merge pull request #22 from ZhuJHua/dev
Release v2.4.7
2024-10-28 00:34:48 +08:00
住京华
1d11e13b0d Merge pull request #21 from ZhuJHua/ZhuJHua-patch-1
Create main.yml
2024-10-28 00:30:59 +08:00
住京华
f96f627143 Create main.yml 2024-10-28 00:30:45 +08:00
住京华
0ed9fc026c Merge pull request #19 from ZhuJHua/ZhuJHua-patch-1
Update README.en.md
2024-10-24 21:21:47 +08:00
住京华
0c3dc27b10 Update README.en.md 2024-10-24 21:21:28 +08:00
住京华
42187cbd5b Merge pull request #18 from ZhuJHua/ZhuJHua-patch-1
Update README.md
2024-10-24 21:17:55 +08:00
住京华
6564907a97 Update README.md 2024-10-24 21:17:40 +08:00
住京华
45e64cfe6d Merge pull request #11 from ZhuJHua/dev
Release v2.4.6
2024-10-18 22:46:23 +08:00
住京华
d32fa6ad23 Merge pull request #10 from ZhuJHua/dev
fix(app): fix title display on some devices
2024-10-18 18:16:08 +08:00
住京华
67d36738fe Merge pull request #9 from ZhuJHua/dev
Fix location error
2024-10-18 17:56:33 +08:00
住京华
9a012efd38 Merge pull request #5 from ZhuJHua/dev
Release v2.4.5
2024-10-18 06:31:57 +08:00
612 changed files with 53738 additions and 13094 deletions

3
.fvmrc Normal file
View File

@@ -0,0 +1,3 @@
{
"flutter": "3.29.3"
}

1
.gitattributes vendored
View File

@@ -1 +1,2 @@
*.tflite filter=lfs diff=lfs merge=lfs -text
* text=auto eol=lf

49
.github/release-drafter.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: ✨ Features
labels:
- feat
- title: 🐛 Bug Fixes
labels:
- fix
- title: 🛠️ Chores
labels:
- chore
- title: 📚 Documentation Updates
labels:
- docs
- title: 🎨 Code Style Updates
labels:
- style
- title: 🔨 Refactors
labels:
- refactor
- title: ⚡ Performance Improvements
labels:
- perf
- title: ✅ Tests
labels:
- test
- title: 🏗️ Build System
labels:
- build
- title: 🧹 CI/CD Changes
labels:
- ci
- title: ⏪ Reverts
labels:
- revert
- title: ❓ What is This
labels:
- '?'
change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
template: |
# 🔥 What's Changed
$CHANGES
---
🔖 Compare Changes: [View Changes](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)

33
.github/workflows/auto-merge.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Auto Merge
on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: { }
jobs:
automerge:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- id: automerge
name: automerge
uses: "pascalgn/automerge-action@v0.16.4"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_METHOD: "squash"
MERGE_DELETE_BRANCH: "true"

182
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,182 @@
name: Build & Release
on:
workflow_dispatch:
jobs:
build-apk:
runs-on: ubuntu-latest
name: Build APK
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Install jq
run: sudo apt-get install -y jq
- name: Read Flutter Version
id: flutter_version
run: |
if [ -f .fvmrc ]; then
FLUTTER_VERSION=$(cat .fvmrc | jq -r '.flutter')
echo "Flutter version detected: $FLUTTER_VERSION"
echo "flutter-version=$FLUTTER_VERSION" >> $GITHUB_ENV
else
echo ".fvmrc not found. Defaulting to latest Flutter version."
echo "flutter-version=stable" >> $GITHUB_ENV
fi
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- name: Set Up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install Dependencies
run: flutter pub get
- name: Decode Keystore
run: |
echo "${{ secrets.ANDROID_KJS }}" | base64 --decode > android/app/key.jks
- name: Create local.properties
run: |
echo "storePassword=${{ secrets.ANDROID_STORE_PASSWORD }}" > android/local.properties
echo "keyPassword=${{ secrets.ANDROID_KEY_PASSWORD }}" >> android/local.properties
- name: Build APK
run: flutter build apk --release --obfuscate --split-debug-info=splitMap
- name: Upload APK Artifact
uses: actions/upload-artifact@v4
with:
name: android-apk
path: build/app/outputs/flutter-apk/app-release.apk
build-windows:
runs-on: windows-latest
name: Build Windows
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "21"
- name: Read Flutter Version
id: flutter_version
run: |
if (Test-Path .fvmrc) {
$FLUTTER_VERSION = (Get-Content .fvmrc | ConvertFrom-Json).flutter
echo "Flutter version detected: $FLUTTER_VERSION"
echo "flutter-version=$FLUTTER_VERSION" >> $env:GITHUB_ENV
} else {
echo ".fvmrc not found. Defaulting to latest Flutter version."
echo "flutter-version=stable" >> $env:GITHUB_ENV
}
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- name: Set Up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Install Dependencies
run: flutter pub get
- name: Build Windows
run: flutter build windows --release
- name: Create ZIP Archive
run: |
Compress-Archive -Path build\windows\x64\runner\Release\* -DestinationPath build\windows\moodiary-windows.zip
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: windows-app
path: build\windows\moodiary-windows.zip
release:
runs-on: ubuntu-latest
name: Publish Release
needs: [ build-apk, build-windows ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Download APK Artifact
uses: actions/download-artifact@v4
with:
name: android-apk
path: artifacts/android
- name: Download Windows Artifact
uses: actions/download-artifact@v4
with:
name: windows-app
path: artifacts/windows
- name: Get Latest Tag
id: latest_tag
uses: actions-ecosystem/action-get-latest-tag@v1.6.0
with:
fetch-all-tags: true
sort-tags: true
- name: Extract Tag Version
id: extract_tag_version
run: |
tag="${{ steps.latest_tag.outputs.tag }}"
version="${tag#v}"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Rename Artifacts
run: |
mkdir -p renamed-artifacts
mv artifacts/android/app-release.apk renamed-artifacts/moodiary-${{ env.VERSION }}-android-arm64.apk
mv artifacts/windows/moodiary-windows.zip renamed-artifacts/moodiary-${{ env.VERSION }}-windows-x64.zip
- name: Generate Release Notes
id: release_notes
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
tag: v${{ env.VERSION }}
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: renamed-artifacts/*
tag: v${{ env.VERSION }}
name: v${{ env.VERSION }}
body: ${{ steps.release_notes.outputs.body }}
draft: true
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}

28
.github/workflows/cargo-ci.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Cargo CI
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Run cargo test
working-directory: rust
run: cargo test
- name: Fail on Errors
if: failure()
run: exit 1

57
.github/workflows/cliff.yml vendored Normal file
View File

@@ -0,0 +1,57 @@
name: Git Cliff
on:
pull_request:
branches:
- master
types:
- closed
workflow_dispatch:
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if PR is merged
run: |
if [ "${{ github.event.pull_request.merged }}" == "true" ]; then
echo "PR is merged, proceeding with changelog update."
else
echo "PR is not merged, skipping changelog update."
exit 0
fi
- name: Generate changelog using Git Cliff
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}
- name: Commit and push changelog changes
run: |
git checkout -b changelog-update
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add CHANGELOG.md
git commit -m "Update changelog"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git changelog-update
- name: Create Pull Request
run: |
gh pr create --base master --head changelog-update --title "Update changelog" --body "This PR updates the changelog based on recent changes." --label bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Auto Merge Pull Request
run: |
gh pr merge --merge --delete-branch "changelog-update"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

49
.github/workflows/flutter-ci.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: Flutter CI
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
flutter-ci:
name: Analyze and Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get install -y jq
- name: Read Flutter Version
id: flutter_version
run: |
if [ -f .fvmrc ]; then
FLUTTER_VERSION=$(cat .fvmrc | jq -r '.flutter')
echo "Flutter version detected: $FLUTTER_VERSION"
echo "flutter-version=$FLUTTER_VERSION" >> $GITHUB_ENV
else
echo ".fvmrc not found. Defaulting to latest Flutter version."
echo "flutter-version=stable" >> $GITHUB_ENV
fi
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter-version }}
- name: Install Dependencies
run: flutter pub get
- name: Run Flutter Analyze
run: flutter analyze
- name: Run Flutter Tests
run: flutter test
- name: Fail on Errors
if: failure()
run: exit 1

22
.github/workflows/issue.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Issue Labeled
on:
issues:
types: [ labeled ]
jobs:
issue-labeled:
if: github.actor != github.event.issue.user.login
runs-on: ubuntu-latest
steps:
- name: Need more info
if: github.event.label.name == 'question'
uses: actions-cool/issues-helper@main
with:
actions: 'create-comment'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
你好 @${{ github.event.issue.user.login }},你所提供的信息不足于我们排查问题,请按照 issue 模板填写相关信息感谢配合谢谢15 天内未回复issue自动关闭。
Hello, @${{ github.event.issue.user.login }}, the information you provided is not enough for us to troubleshoot the problem. Please complete the issue description. Thanks so much for your cooperation! The issue will be closed without any replay within 15 days.

54
.github/workflows/label-pr.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: Label PR Based on Conventional Commits
on:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Analyze PR Title
id: analyze_title
run: |
pr_title="${{ github.event.pull_request.title }}"
label=""
# Match against Conventional Commits
if [[ "$pr_title" == feat* ]]; then
label="feat"
elif [[ "$pr_title" == fix* ]]; then
label="fix"
elif [[ "$pr_title" == chore* ]]; then
label="chore"
elif [[ "$pr_title" == docs* ]]; then
label="docs"
elif [[ "$pr_title" == style* ]]; then
label="style"
elif [[ "$pr_title" == refactor* ]]; then
label="refactor"
elif [[ "$pr_title" == perf* ]]; then
label="perf"
elif [[ "$pr_title" == test* ]]; then
label="test"
elif [[ "$pr_title" == build* ]]; then
label="build"
elif [[ "$pr_title" == ci* ]]; then
label="ci"
elif [[ "$pr_title" == revert* ]]; then
label="revert"
else
label="?"
fi
echo "label=$label" >> $GITHUB_ENV
- name: Add Label to PR
uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ env.label }}
github_token: ${{ secrets.GITHUB_TOKEN }}

54
.github/workflows/telegram-bot.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: Release Notification
on:
release:
types:
- released
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
notify-telegram:
name: Notify Telegram
runs-on: ubuntu-latest
steps:
- name: Extract Release Info
id: extract_release
run: |
response=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
"https://api.github.com/repos/ZhuJHua/moodiary/releases/latest")
# Parse the response to extract needed fields
RELEASE_TAG=$(echo "$response" | jq -r '.tag_name')
RELEASE_NAME=$(echo "$response" | jq -r '.name')
RELEASE_NOTES=$(echo "$response" | jq -r '.body')
RELEASE_URL=$(echo "$response" | jq -r '.html_url')
# Export as environment variables
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV
{
echo "RELEASE_NOTES<<EOF"
echo "$RELEASE_NOTES"
echo "EOF"
} >> $GITHUB_ENV
echo "RELEASE_URL=$RELEASE_URL" >> $GITHUB_ENV
- name: Send Telegram Message
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
message: |
🎉 A new release is live! 🎉
Version: ${{ env.RELEASE_TAG }}
Release Notes:
${{ env.RELEASE_NOTES }}
🔗 View Release: ${{ env.RELEASE_URL }}

4
.gitignore vendored
View File

@@ -43,3 +43,7 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/ios/build
# FVM Version Cache
.fvm/

691
CHANGELOG.md Normal file
View File

@@ -0,0 +1,691 @@
# Changelog
All notable changes to this project will be documented in this file.
## [unreleased]
### 🚀 Features
- *(zip)* Use rust to increase data export speed
- *(widget)* Add utility functions to capture widget as image
- Add code scanning to import support
- Optimize image processing capabilities
- Integrate Jieba for keyword extraction and search optimization
### 🐛 Bug Fixes
- *(share)* Fix capture and share methods
- Remove workspace
- Qweather api error
- Qweather api error
### 🚜 Refactor
- Optimize the code structure
### 📚 Documentation
- Update sponsor list
### ⚙️ Miscellaneous Tasks
- Fix build
- *(ci)* Remove redundant dependency installation for Rust builder
- Remove custom_lint to fix dart analyzer slow
- Update rust test ci
- Add test module to lib.rs
## [2.7.3] - 2025-03-02
### 🚀 Features
- *(telegram-bot)* Enhance release notification workflow
- *(telegram-bot)* Enhance release notification workflow
- *(llama)* Add LlamaUtil class and update dependencies
- *(text)* Introduce AdaptiveText and EllipsisText components for improved text handling
- *(about)* Replace Text with AnimatedText for dynamic app info display
- *(cache)* Implement LRUCache and AsyncLRUCache for efficient data management
- *(font)* Streamline font loading
- *(font)* Add caching for font name and weight axis retrieval
- *(diary)* Enhance text handling by trimming titles and removing line breaks from content
- *(font)* Enhance font loading capabilities
- *(font)* Clear cache when font style change
- *(aes)* Add aes-gcm encryption algorithm
- Add secure storage to store user key
- Use the new route transition
- Optimize image preview
- Enhance image viewing experience with hero transitions and loading states
- Improve image handling with enhanced hero transitions and dynamic sizing
- Add WindowsBar and MoveTitle widgets for improved window management
- Enhance UI and improve desktop experience (#179)
- Add workflow_run trigger for Git Cliff completion
- Update changelog workflow to check PR merge status before generating changelog
- Add an abstract sync interface
- Enhance diary card views with icons and improve page transitions
### 🐛 Bug Fixes
- *(font)* Fix adding the font may cause the application crash
- *(font)* Fix font is not loaded when startup
- *(log)* Log did not work in release mode
- Route error
- Update application name and improve debug configuration
- Update localization configuration to include synthetic package option
- Update dependencies and remove unused localization imports
- Ci (#177)
- Correct syntax for workflow_run trigger in auto-merge.yml
- Update diary_view to use Get.put for DiaryLogic instantiation
### 💼 Other
- *(*)* Upgrade dependencies
### 🚜 Refactor
- Rename rust library from rust_lib_mood_diary to moodiary_rust
- Remove video page routing and update video state initialization
- Streamline theme management and dynamic color support
- Remove Objectbox plugin references and update tile caching implementation
### ⚙️ Miscellaneous Tasks
- *(*)* Update telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- *(*)* Adjust the output format of outdated dependencies in the Telegram bot workflow
- Update flutter_rust_bridge to version 2.7.1 and adjust generated files
- Update imports and refresh package version to 3.0.0
- Update readme
- *(*)* Upgrade flutter and frb version
- *(*)* Upgrade flutter version to 3.29.0
- Add git-cliff to generate changelog
- Add git-cliff to generate changelog
- Add git-cliff to generate changelog
- Add git-cliff to generate changelog
- Add git-cliff to generate changelog
- Upgrade actions/checkout to v4 across workflow files
- Fix cliff ci
- Update dependencies in pubspec.yaml to latest versions
- Update NDK and plugin versions in build configuration
- Update .gitignore
- *(fix build error)* [skip ci]
## [2.7.2] - 2025-01-27
### 🚀 Features
- *(ui)* Adjust lock page and correct localization
- *(markdown)* Add support for markdown diary
- *(android)* Update NDK and Kotlin versions
- *(dependencies)* Update SDK and package versions
- *(readme)* Update Flutter and Dart version requirements
- *(category)* Init support nested multi-level classification
- *(*)* Add workflow to send release notifications to Telegram
- *(ui)* Optimize home page ui
- *(ui)* Optimize UI details
- *(about)* Add easter eggs
- *(media)* Optimize UI layout
- *(markdown)* Add markdown preview support
- *(lint)* Add more lint rules
- *(about)* Enhance confetti effect and update duration
- *(text)* Optimize ellipsis text rendering
- *(ui)* Refine window buttons and UI components
- *(ui)* Add simple window button support for windows
- *(msix)* Add msix configuration for store publishing
- *(msix)* Update msix configuration for store
- *(msix)* Update msix config for store publishing
- *(pubspec)* Add logo path for desktop
- *(ui)* Enhance diary card text visibility and format
- *(markdown)* Support markdown editing and embed rendering
- *(home)* Add shadow option for the HomeFab component
- *(ui)* Enhance image viewing and navigation
### 🐛 Bug Fixes
- *(ui)* Improve desktop page switching performance
- *(ui)* Add microsoft yahei ui as default font at windows
- *(*)* Remove pull to refresh at desktop platform
### 💼 Other
- *(macos)* Update code signing and provisioning settings
### 🚜 Refactor
- *(*)* Organize the project structure and use absolute paths uniformly
- *(*)* Optimize project structure
- *(media)* Reconstruct the media library, with more animation and better performance
### 🎨 Styling
- Code clean
### ⚙️ Miscellaneous Tasks
- *(flutter)* Update flutter version to 3.27.2
- Simplify telegram release notification
- *(ci)* Enhance telegram notification with release details
- Refine release notification workflow
- Update Flutter version to 3.27.3
- Update shared_preferences_android to 2.4.3
- *(*)* Adjust msix_config settings in pubspec.yaml
- *(*)* Bump version to 2.7.2+72
## [2.7.1] - 2025-01-18
### 🚀 Features
- *(l10n)* Add full localization support
- *(edit)* Add audio file selection
- *(l10n)* Add localization for diary operations and data sync
### 🐛 Bug Fixes
- *(ci)* Add release drafter
- *(*)* Fix ci
- *(*)* Fix ci
- *(*)* Fix ci
- *(ci)* Fix ci (#107)
- *(*)* Fix ci
- *(*)* Fix ci
- *(calendar)* Filter visible diaries
### 💼 Other
- *(action)* Fix workflow
- *(android)* Upgrade AGP to 8.8.0
- *(android)* Upgrade AGP to 8.8.0
### ⚙️ Miscellaneous Tasks
- *(*)* Update readme
- *(*)* Optimize release note generation logic
- *(*)* Add flutter analyze workflow and dynamic flutter version support
- *(ci)* Adjust flutter analyze trigger
- *(ci)* Install dependencies for rust builder project in flutter analyze workflow
- *(workflow)* Update flutter analyze workflow
- *(ci)* Add dependency installation step for rust builder
- *(*)* Bump version to 2.7.1+71
## [2.7.0] - 2025-01-17
### 🚀 Features
- *(diary)* Init support for multi diary
- *(private)* Add private mode
- *(feedback)* Add new feedback
- *(lock)* Automatically invoke biometrics on startup
- *(edit)* Add multi image picker support
- *(webdav)* Added more option for webdav
### 🐛 Bug Fixes
- *(webdav)* Fix webdav error
- *(logger)* Fix logger can't export
- *(log)* Fix logger
- *(ci)* Fix workflow error (#105)
- *(ci)* Fix ci (#106)
- *(ci)* Fix work flows
- *(media_view)* Fix file time sorting bug in media library
- *(sync)* Fix local sync exception
- *(*)* Fix unexpected issue causing immediate lockup
### 💼 Other
- *(pub)* Update dependencies
- *(pub)* Upgrade dependencies
- *(pub)* Upgrade dependencies
- *(pub)* Upgrade dependencies
### 🚜 Refactor
- *(ui)* Improve ui
- *(ui)* Improve ui
- *(*)* Use refreshed to replace getx &use in app webview
- *(ui)* Improve ui
- *(ui)* Improve ui
- *(ui)* Limit the maximum height of media files in rich text to 300
### 🎨 Styling
- *(*)* Code clean up
- *(*)* Code clean
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(*)* Update readme
- *(*)* Update readme
- *(*)* Update readme
- *(*)* Update readme
- *(*)* Release at 2.7.0
## [2.6.5] - 2025-01-02
### 🚀 Features
- *(category)* Init support nested multi-level classification
- *(font)* Add support for custom font
- *(ui)* Optimize image and video viewing
- *(ui)* Optimize desktop operating experience
- *(fvm)* Add fvm to manager flutter version
- *(*)* Improve category manager
- *(hitokoto)* Add hitokoto in title
- *(ui)* Add marquee to fix long text
- *(*)* Add dev mode
### 🐛 Bug Fixes
- *(fix display error when local send)* Closes #80
- *(android)* Fix release build error on android platform
- *(logger)* Fix can't catch error log at release mode
- *(webdav)* Fix webdav error when creating dir
- *(ui)* Fix text painter did not match custom text scale
- *(font)* Fix variable font misans vf
- *(action)* Fix github action
### 🚜 Refactor
- *(*)* Add some notice when catching error
- *(ui)* New bottom sheet ui & new theme color picker
- *(home)* New ui for home page
- *(ui)* Add animated switcher to fade
- *(ui)* Remove useless widget & add try catch for hitokoto
### 🎨 Styling
- *(code)* Cleanup the code
- *(*)* Code cleanup
### ⚙️ Miscellaneous Tasks
- *(*)* Update readme
- *(*)* Update readme
- *(*)* Fix isar build error
- *(*)* Release at 2.6.5
## [2.6.4] - 2024-12-15
### 🐛 Bug Fixes
- *(data)* Fix date merge error
- *(data)* Fix data merge error to 2.6.3
- *(diary)* Home page did not remove deleted diary
### 🚜 Refactor
- *(ui)* Improve ui
### ⚙️ Miscellaneous Tasks
- *(*)* Release at 2.6.4 as hotfix
## [2.6.3] - 2024-12-15
### 🚀 Features
- *(icon)* Add new icon for desktop
- *(webdav)* Improve webdav behavior
- *(*)* Add try catch
- *(sync)* Add local sync at home page
- *(webdav)* Improve webdav util
- *(save_image)* Add save image to local
- *(media)* Improve media library
- *(media)* Improve media
### 🐛 Bug Fixes
- *(layout)* Fix home page layout overflow
- *(desktop)* Improve desktop experience
- *(layout)* Fix layout
- *(logic)* Fix did not jump to new category tabview when add category
- *(webdav)* Local did not delete
- *(android)* Fix splash screen not full
- *(lab)* Key did not update after input
- *(log)* Error log did not write into file
- *(local_sync)* Category sync error
- *(location)* Fix can't get location on macos
- *(toast)* Remove flutter hook
### 🚜 Refactor
- *(*)* Remove hitokoto
- *(calendar)* Better calendar view
- *(l10n)* Refactor localization
- *(ui)* Refactor ui
- *(ui)* Refactor rich text adding media
- *(ui)* Make record_sheet_view higher
### ⚡ Performance
- *(image)* Improve image performance
- *(*)* Improve performance
- *(*)* Use isolate to improve performance
### 🎨 Styling
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(*)* Hotfix at 2.6.1
- *(*)* Update readme
- *(isar)* Gen code
- *(*)* Release at 2.6.3
## [2.6.1] - 2024-12-11
### 🐛 Bug Fixes
- *(data)* Fix data merge error
- *(webdav)* Behavior when has no options
- *(rust)* Frb version
- *(*)* Can't start on some devices
### 🚜 Refactor
- *(*)* Remove font setting
- *(diary_detail)* Remove squad
## [2.6.0] - 2024-12-10
### 🚀 Features
- *(server)* Init server support
- *(kmp)* Add kmp search use rust
- *(webdav)* Init webdav util
- *(server)* Init server
- *(*)* Add rich text and media editor
- *(util)* Add keyboard listener
- *(icon)* Use new app icon
- *(webdav)* Support webdav sync
- *(webdav)* Improve webdav support
- *(edit)* Add auto select category
- *(*)* Add data merge to 2.6.0
### 🐛 Bug Fixes
- *(rust)* Fix string error in kmp
- *(ui)* Fixed layout issues with three-button navigation mode
- *(image_compress)* Fix can't compress heif image
- *(local_send)* Fix can't find ip at ethernet mode
### 💼 Other
- *(pubspec)* Upgrade dependencies
- *(rust)* Update dependencies
- *(rust)* Generated rust builder
- *(*)* Platform build option
- *(pubsepc)* Remove unused dependencies
### 🚜 Refactor
- *(ui)* Improve ui
- *(ui)* Improve ui
- *(*)* Use the new flutter api to catch error
### ⚡ Performance
- *(*)* Improve perf at home page
### ⚙️ Miscellaneous Tasks
- *(git)* Add attributes
- *(*)* Add workflows
- *(release)* Prepare release version 2.6.0
## [2.4.9] - 2024-11-19
### 🐛 Bug Fixes
- *(password)* Remove password error
- *(windows)* Fix biometric auth error in windows
- *(windows)* Fix get video thumbnail error in windows
- *(home)* Fix pagination error
### 🚜 Refactor
- *(image)* Use rust to compress image
- *(ui)* Add some animation
- *(ui)* Improve layout for better user experience
- *(ui)* Improve layout for better user experience
- *(*)* Add category manager
### 🎨 Styling
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(*)* Release 2.4.9
## [2.4.8] - 2024-11-12
### 🐛 Bug Fixes
- *(*)* Fix many bugs
## [2.4.8-rc] - 2024-11-12
### 🚀 Features
- *(*)* Initial localization and LAN synchronization
- *(macos)* Prepare for macos support
- *(map)* Add map support for viewing and managing diary entry locations
- *(local_send)* Add local send support
- *(local_send)* More improve about local send
- *(*)* Add more function in home page
### 🐛 Bug Fixes
- *(search)* Add title search support
- *(*)* Fix title bar in macos
- *(local_send)* Fix modifying list in loop
- *(map)* Fix map cache error
### 💼 Other
- *(android)* Remove unused dependencies
### 🚜 Refactor
- *(*)* Improve performance
### 🎨 Styling
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(*)* Release 2.4.8
## [2.4.7] - 2024-10-27
### 🚀 Features
- *(edit)* Add automatic weather getting
- *(page/map)* Map
### 🐛 Bug Fixes
- *(edit)* Fix tooltip position error
- *(edit)* Fix tooltip position
- *(category)* Fix category not be able to deselect
- *(file_util)* Fix share and data export error on windows
### ⚡ Performance
- *(page/setting)* Improve performance
### 🎨 Styling
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(*)* Release 2.4.7
## [2.4.6] - 2024-10-18
### 🚀 Features
- *(update)* Add check update in app
### 🐛 Bug Fixes
- *(location)* Fix location error
- *(app)* Fix title display on some devices
- *(file_util)* Fix data import and export
## [2.4.5] - 2024-10-17
### 🚀 Features
- *(video)* Add support for video player
### 🐛 Bug Fixes
- *(*)* Landscape cannot be used on Android tablets
- *(weather)* Weather cannot be obtained due to positioning problems
### 💼 Other
- *(android)* Update gradle version
- *(*)* Update version
### 🚜 Refactor
- *(*)* Refactor directory structure
- *(*)* Refactor for performance
### ⚙️ Miscellaneous Tasks
- *(*)* Code clean
## [2.4.4] - 2024-10-01
### 🚀 Features
- *(ask_question)* Add SQuAD task in diary
- *(media_view)* Add media view in navigator bar
- *(media_view)* Add image manager
### 💼 Other
- *(android)* Change the minSdk 26
- *(pubspec)* Update dependencies
### 🚜 Refactor
- *(*)* Optimize the color scheme
### ⚡ Performance
- *(setting_view)* Cache the list reduces unnecessary rebuild
### 🎨 Styling
- *(*)* Code clean
### ⚙️ Miscellaneous Tasks
- *(lint)* Add lint rules
- *(lfs)* Add lfs support
## [2.4.3] - 2024-09-23
### 🚀 Features
- *(calendar)* Add timeline view in calendar page
- *(home)* Auto hidden navigation bar
- *(calendar_view)* Add calendar view
- *(About)* Add about page
- *(Calendar)* Add expansion panel in calendar view
### 🐛 Bug Fixes
- *(isar)* Fix error when importing data
- *(home)* Fix scrolling error
- *(record_sheet)* Can not start recording after stop recording
- *(calendar)* Unnecessary build in calendar page
- *(*)* Diary is not change after edit or delete
### 💼 Other
- *(pubspec)* Update dependencies
- *(pubspec)* Update dependencies
- *(pubspec)* Update dependencies
### 🚜 Refactor
- *(wave_form)* Make wave form componentized
- *(*)* Make the code clear
- *(*)* Extract the border radius settings
- *(isar)* Add equal method in diary
- *(isar)* Rename the method
- *(pref)* Change the default color when start up
- *(*)* Remove useless method
### ⚙️ Miscellaneous Tasks
- *(theme)* New theme color
- *(*)* Code clean
- *(intl)* More localization
- *(intl)* More localization
## [2.4.2] - 2024-09-19
### 🚀 Features
- *(windows)* Prepare for windows platform
- *(assistant)* Prepare for assistant page
### 🐛 Bug Fixes
- *(diary_details)* Fix banner height
- *(home)* Fix multi scroll in home page
- *(permission_util)* Fix get location on android platform
- *(diary_card)* Fix an unexpected jump after modify a diary
### 💼 Other
- *(pubspec)* Update dependencies
- *(android)* Remove unused abiFilters
- *(pubspec)* Update dependencies
- *(*)* Remove unused dependencies
- *(pubsepc)* Update dependencies
- *(android)* Update agp version
### 🚜 Refactor
- *(*)* There are so many changes, I don't know what changes, so fuck it
### ⚡ Performance
- *(*)* Improve performance in some cases
### ⚙️ Miscellaneous Tasks
- *(intl)* More localization
## [2.4.1] - 2024-08-26
### 🐛 Bug Fixes
- *(record_sheet)* Fix wave form width anomalies
- *(notice_util)* Something wrong when catching bugs
### 💼 Other
- *(pubspec)* Update dependencies
### ⚡ Performance
- *(home)* Improve performance in home view
<!-- generated by git-cliff -->

View File

@@ -1,144 +0,0 @@
# 📔 Moodiary
[简体中文](README.md)丨English
「Moodiary」 is an open source, ad-free, social-free cross-platform private journal written with Flutter. Designed with Material Design, simple and easy to use.
![Flutter Version](https://img.shields.io/badge/Flutter-3.26.0--0.1.pre-blue?style=for-the-badge) ![GitHub repo size](https://img.shields.io/github/repo-size/ZhuJHua/moodiary?style=for-the-badge&color=ff7070) ![GitHub Repo stars](https://img.shields.io/github/stars/ZhuJHua/moodiary?style=for-the-badge&color=965f8a) ![GitHub Release](https://img.shields.io/github/v/release/ZhuJHua/moodiary?style=for-the-badge&color=4f5e7f) ![GitHub License](https://img.shields.io/github/license/ZhuJHua/moodiary?style=for-the-badge&color=4ac6b7)
## ✨ Feature
- **Cross-platform support**:🌍 Compatible with Android, iOS\*, Windows, MacOS\*, Linux\*.
- **Material Design**:🎨 The interface is intuitive and user-friendly, and follows the Material Design specifications.
- **Rich text editing**:📝 Supports text editing in bold, italic, underline and other formats.
- **Multimedia accessories**:📷 You can add pictures, audio, video or even draw a picture to your diary.
- **Search and classification**:🔍 Easily manage your diary by full-text search and categorization.
- **Custom theme**:🌈 Supports light and dark modes, as well as a variety of color schemes.
- **Data security**:🔒 Keep your diary safe with a password, supports biometric unlocking.
- **Export and share**:🧾 Support all data import/export, as well as single diary sharing.
- **Backup and synchronization**:☁ Support for LAN synchronization and WebDav backup (coming soon).
- **Footprint Map** : 🗺️ See your footprints on a map. Every step of your life is worth documenting.
- **Intelligent assistant**:💬 Supports access to third-party large models, provides Q&A, sentiment
analysis and other functions.
- **Local Natural Language Processing (NLP)**:🤖 A more secure intelligent assistant that lets your
diary know you better.
(Note: Cross-platform capabilities are provided by Flutter, platforms with * may require more testing)
## 🔧 Main Technology stack
- [Flutter](https://github.com/flutter/flutter) ( Cross-platform UI framework )
- [Isar](https://github.com/isar/isar) ( High performance local database )
- [GetX](https://github.com/jonataslaw/getx) ( State management framework )
## 📸 Application screenshot
> The application is constantly updated, and the interface may change slightly in the new version
### Mobile
![Mobile](res/screenshot/mobile.webp)
### Desktop
![Desktop](res/screenshot/desktop.webp)
## 🚀 Installation guide
### Third party SDK
Some capabilities need to apply for third-party SDKS, and the following service providers provide free versions, and the obtained keys are configured in the lab.
#### Weather service
- [QWeather](https://dev.qweather.com/docs/api/)
#### Map service
- [Tianditu](http://lbs.tianditu.gov.cn/server/MapService.html)
#### Intelligent assistant
- [Tencent Hunyuan](https://cloud.tencent.com/document/product/1729/97731)
### Direct mounting
Use it by downloading the compiled installation package in Release, or manually compiling it if you don't have the platform you need.
### Manual compilation
#### Environmental requirement
- Flutter SDK (>= 3.26.0-0.1.pre, Because I use features that have not been incorporated into the stable version, I can only use the beta version and will migrate as soon as the stable version is updated)
- Dart (>= 3.6.0)
- Compatible ides (e.g. Android Studio, Visual Studio Code)
#### Installation procedure
> Note: When packaging, you need to modify the corresponding platform configuration file, such as Android platform build.gradle
1. **Clone Repo**
```bash
git clone https://github.com/ZhuJHua/moodiary.git
cd moodiary
```
2. **Installation dependency**
```bash
flutter pub get
```
3. **Running application**
```bash
flutter run
```
4. **Package release**
- Android: `flutter build apk`
- iOS: `flutter build ios`
- Windows: `flutter build windows`
## 📝 More description
### Natural Language Processing (NLP)
> In the experimental stage
Today, more and more industry products are beginning to incorporate AI technology, which undoubtedly greatly improves our experience. However, for diary applications, it is not acceptable to hand over the data to a large model because it is not certain that the data will be used for training. Therefore, a better approach is to adopt a local model. Although local models may not be as powerful as large models due to size limitations, they can still provide necessary help to a certain extent.
Currently, I have the following tasks integrated into the source code:
#### SQuAD task based on Bert pre-trained model
I used MobileBert for the SQuAD task, which is a simple machine reading comprehension task. You can ask it questions and it will return the answers you need. The model files are in the `.tflite` format required by TensorFlow Lite, so you can add your own model files to the `assets/tflite` directory.
Thanks to the following open source projects:
- [Chinese MobileBERT](https://github.com/ymcui/Chinese-MobileBERT)
- [Mobilebert](https://github.com/google-research/google-research/tree/master/mobilebert)
- [ChineseSquad](https://github.com/junzeng-pluto/ChineseSquad)
## 🤝 Contribution guide
Contributions are welcome! Please follow these steps to contribute:
1. Fork this repository.
2. Create a new branch(`git checkout -b feature-branch-name`)。
3. Commit your changes(`git commit -am 'Add some feature'`)。
4. Push to branch(`git push origin feature-branch-name`)。
5. Create a Pull Request.
Please make sure that your code to follow [Flutter style guide](https://flutter.dev/docs/development/tools/formatting) and include the appropriate tests.
## 📄 License
This project is licensed under the AGPL-3.0 LICENSE, see the [LICENSE](LICENSE) file for details.
## 💖 Thanks
- Thanks to the Flutter team for the excellent framework.
- Special thanks to the open source community for their valuable contributions.

214
README.md
View File

@@ -1,142 +1,188 @@
# 📔 心绪日记
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/banner/dark_en.svg">
<source media="(prefers-color-scheme: light)" srcset="res/banner/light_en.svg">
<img alt="The preview for moodiary." src="res/banner/light_en.svg">
</picture>
<p align="center"><a href="README.zh.md">简体中文</a> | English</p>
简体中文丨[English](README.en.md)
<p align="center"><a href="https://answer.moodiary.net" target="_blank">Official forum</a>丨QQ Group: <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=xGr0TNp_X1z3XEn09_iE_iGSLolQwl6Y&jump_from=webapi&authKey=ZmSb2oEd94FSXxBXRBq53hgTjjvcfmgkQrduB3uL12XtRylPmRlO2OdFz6R25tIo">760014526</a>丨Telegram: <a target="_blank" href="https://t.me/openmoodiary">openmoodiary</a></p>
「心绪日记」 是采用 Flutter 编写的,无广告、无社交的开源跨平台私密日记本。采用 Material Design 设计,简洁且易用。
<div align="center">
<img src="https://img.shields.io/badge/Flutter-3.29.2-blue?style=for-the-badge">
<img src="https://img.shields.io/github/repo-size/ZhuJHua/moodiary?style=for-the-badge&color=ff7070">
<img src="https://img.shields.io/github/stars/ZhuJHua/moodiary?style=for-the-badge&color=965f8a">
<img src="https://img.shields.io/github/v/release/ZhuJHua/moodiary?style=for-the-badge&color=4f5e7f">
<img src="https://img.shields.io/github/license/ZhuJHua/moodiary?style=for-the-badge&color=4ac6b7">
</div>
![Flutter Version](https://img.shields.io/badge/Flutter-3.26.0--0.1.pre-blue?style=for-the-badge) ![GitHub repo size](https://img.shields.io/github/repo-size/ZhuJHua/moodiary?style=for-the-badge&color=ff7070) ![GitHub Repo stars](https://img.shields.io/github/stars/ZhuJHua/moodiary?style=for-the-badge&color=965f8a) ![GitHub Release](https://img.shields.io/github/v/release/ZhuJHua/moodiary?style=for-the-badge&color=4f5e7f) ![GitHub License](https://img.shields.io/github/license/ZhuJHua/moodiary?style=for-the-badge&color=4ac6b7)
## ✨ 功能特性
## ✨ Feature
- **跨平台支持**:🌍 兼容 AndroidiOS\*、WindowsMacOS\*、Linux\*
- **Material Design**:🎨 界面直观且用户友好,遵循 Material Design 设计规范。
- **富文本编辑**:📝 支持加粗、斜体、下划线等多种格式的文本编辑。
- **多媒体附件**:📷 可以为你的日记添加图片、音频、视频甚至画一张画。
- **搜索和分类**:🔍 轻松通过全文搜索及分类管理你的日记。
- **自定义主题**:🌈 支持浅色和深色模式,以及多种配色的主题。
- **数据安全**:🔒 通过密码来保障你的日记安全,支持通过生物识别解锁。
- **导出和分享**:🧾 支持所有数据的导入/导出,以及单篇日记的分享。
- **备份与同步**:☁ 支持局域网同步,快速在设备间同步数据,以及 WebDav 备份(即将支持)。
- **足迹地图**:🗺️ 在地图上查看你足迹,生活中的每一步都值得被记录。
- **智能助手**:💬 支持接入第三方大模型,提供问答、情绪分析等功能。
- **本地自然语言处理NLP**:🤖 更安全的智能助手,让你的日记更懂你。
- **Cross-platform support**: 🌍 Compatible with Android, iOS, Windows, MacOS, Linux\*.
- **Material Design**: 🎨 The interface is intuitive and user-friendly, and follows the Material Design specifications.
- **Multiple editors**: 📝 supports markdown, plain text, rich text and other forms of text editing.
- **Multimedia accessories**: 📷 You can add pictures, audio, video or even draw a picture to your diary.
- **Search and classification**: 🔍 Easily manage your diary by full-text search and categorization.
- **Custom theme**: 🌈 Supports light and dark modes, as well as a variety of color schemes.
- **Custom fonts**: ✍️ Supports importing different fonts, and supports variable fonts.
- **Data security**: 🔒 Keep your diary safe with a password, supports biometric unlocking.
- **Export and share**: 🧾 Support all data import/export, as well as single diary sharing.
- **Backup and synchronization**: ☁ Support for LAN synchronization and WebDav backup.
- **Trail Map**: 🗺️ See your footprints on a map. Every step of your life is worth documenting.
- **Intelligent assistant**: 💬 Supports access to third-party large models, provides Q&A, sentiment analysis and other functions.
- **Local Natural Language Processing (NLP)**: 🤖 A more secure intelligent assistant that lets your diary know you better.
(注:跨平台能力由 Flutter 提供,带 * 号的平台可能需要更多测试)
(Note: Cross-platform capabilities are provided by Flutter, and platforms with * marks may require more testing)
## 🔧 主要技术栈
## 🔧 Main Technology stack
- [Flutter](https://github.com/flutter/flutter)(跨平台 UI 框架)
- [Isar](https://github.com/isar/isar)(高性能本地数据库)
- [GetX](https://github.com/jonataslaw/getx)(状态管理框架)
- [Flutter](https://github.com/flutter/flutter) ( Cross-platform UI framework )
- [Isar](https://github.com/isar/isar) ( High performance local database )
- [GetX](https://github.com/jonataslaw/getx) ( State management framework )
## 📸 应用截图
## 📸 Application screenshot
> 应用持续更新中,新版本界面可能稍有变化
> The application is constantly updated, and the interface may change slightly in the new version
### 移动端
### Mobile
![移动端](res/screenshot/mobile.webp)
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/screenshot/mobile_dark_en.webp">
<source media="(prefers-color-scheme: light)" srcset="res/screenshot/mobile_light_en.webp">
<img alt="The mobile screenshot for moodiary." src="res/screenshot/mobile_light_en.webp">
</picture>
### 桌面端
### Desktop
![桌面端](res/screenshot/desktop.webp)
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/screenshot/desktop_dark_en.webp">
<source media="(prefers-color-scheme: light)" srcset="res/screenshot/desktop_light_en.webp">
<img alt="The desktop screenshot for moodiary." src="res/screenshot/desktop_light_en.webp">
</picture>
## 🚀 安装指南
## 🚀 Installation guide
### 第三方 SDK
### Third party SDK
某些能力需要自行申请第三方 SDK下列服务商均提供免费的版本获取到的 Key 在实验室中配置。
Some capabilities need to apply for third-party SDKS, and the following service providers provide free versions, and the obtained keys are configured in the lab.
#### 天气服务
#### Weather service
- [和风天气](https://dev.qweather.com/docs/api/)
- [QWeather](https://dev.qweather.com/docs/api/)
#### 地图服务
#### Map service
- [天地图](http://lbs.tianditu.gov.cn/server/MapService.html)
- [Tianditu](http://lbs.tianditu.gov.cn/server/MapService.html)
#### 智能助手
#### Intelligent assistant
- [腾讯混元大模型](https://cloud.tencent.com/document/product/1729/97731)
- [Tencent Hunyuan](https://cloud.tencent.com/document/product/1729/97731)
### 直接安装
### Direct install
通过下载 Release 中已编译好的安装包来使用,如果没有你所需要的平台,请使用手动编译。
Use it by downloading the compiled installation package in Release, or manually compiling it if you don't have the platform you need.
### 手动编译
### Manual compilation
#### 环境要求
#### Environmental requirement
- Flutter SDK (>= 3.26.0-0.1.pre因为使用了尚未合并到稳定版的功能我只能使用测试版等稳定版更新后会尽快迁移)
- Dart (>= 3.6.0)
- 兼容的 IDE如 Android Studio、Visual Studio Code
> I always use the latest Flutter version (if possible), using newer versions will bring more features and better performance improvements, never use older versions unless you want your code to become a piece of 💩
#### 安装步骤
- Flutter SDK (>= 3.29.0 Stable) (It is recommended to use FVM to manage the Flutter version)
- Dart (>= 3.7.0)
- Rust Toolchain (Nightly)
- Clang/LLVM
- Compatible IDE (e.g. Android Studio, Visual Studio Code)
> 注意:当打包时,需要自己修改对应平台的配置文件,例如安卓平台的 build.gradle
#### Installation procedure
1. **克隆仓库**
> Note: For security reasons, I did not include my signature in the code base, when you need to manually package, you need to modify the configuration file of the corresponding platform, such as build.gradle on the Android platform, and package after modifying the package name, thank you for your understanding.
```bash
git clone https://github.com/ZhuJHua/moodiary.git
cd moodiary
```
1. **Clone Repo**
2. **安装依赖**
```bash
git clone https://github.com/ZhuJHua/moodiary.git
cd moodiary
```
```bash
flutter pub get
```
2. **Installation dependency**
3. **运行应用**
```bash
flutter pub get
```
```bash
flutter run
```
3. **Running application**
4. **打包发布**
```bash
flutter run
```
- Android: `flutter build apk`
- iOS: `flutter build ios`
- Windows: `flutter build windows`
4. **Package release**
## 📝 更多说明
- Android: `flutter build apk`
- iOS: `flutter build ipa`
- Windows: `flutter build windows`
- MacOS: `flutter build macos`
### 自然语言处理NLP
## 📝 More description
> 处于实验阶段
### Natural Language Processing (NLP)
如今,越来越多的行业产品开始融入 AI 技术,这无疑极大地提升了我们的使用体验。然而,对于日记应用来说,将数据交给大型模型处理并不可接受,因为无法确定这些数据是否会被用于训练。因此,更好的方法是采用本地模型。虽然由于体积限制,本地模型的能力可能不如大型模型强大,但在一定程度上仍能为我们提供必要的帮助。
> In the experimental stage
目前,我在源码中集成了以下任务:
Today, more and more industry products are beginning to incorporate AI technology, which undoubtedly greatly improves our experience. However, for diary applications, it is not acceptable to hand over the data to a large model because it is not certain that the data will be used for training. Therefore, a better approach is to adopt a local model. Although local models may not be as powerful as large models due to size limitations, they can still provide necessary help to a certain extent.
#### 基于 Bert 预训练模型的 SQuAD 任务
Currently, I have the following tasks integrated into the source code:
我采用了 MobileBert 来处理 SQuAD 任务,这是一个简单的机器阅读理解任务。你可以向它提出问题,它会返回你需要的答案。模型文件采用 TensorFlow Lite 所需的 `.tflite` 格式,所以你可以添加自己的模型文件到 `assets/tflite` 目录下。
#### SQuAD task based on Bert pre-trained model
感谢以下开源项目:
I used MobileBert for the SQuAD task, which is a simple machine reading comprehension task. You can ask it questions and it will return the answers you need. The model files are in the `.tflite` format required by TensorFlow Lite, so you can add your own model files to the `assets/tflite` directory.
Thanks to the following open source projects:
- [Chinese MobileBERT](https://github.com/ymcui/Chinese-MobileBERT)
- [Mobilebert](https://github.com/google-research/google-research/tree/master/mobilebert)
- [ChineseSquad](https://github.com/junzeng-pluto/ChineseSquad)
## 🤝 贡献指南
## 🤝 Contribution guide
欢迎贡献!请按照以下步骤进行贡献:
Contributions are welcome! Please follow these steps to contribute:
1. Fork 本仓库。
2. 创建一个新分支(`git checkout -b feature-branch-name`
3. 提交你的修改(`git commit -am 'Add some feature'`
4. 推送到分支(`git push origin feature-branch-name`
5. 创建一个 Pull Request
1. Fork this repository.
2. Create a new branch(`git checkout -b feature-branch-name`)
3. Commit your changes(`git commit -am 'Add some feature'`)
4. Push to branch(`git push origin feature-branch-name`)
5. Create a Pull Request.
请确保你的代码遵循 [Flutter 风格指南](https://flutter.dev/docs/development/tools/formatting) 并包含适当的测试。
Please make sure that your code to follow [Flutter style guide](https://flutter.dev/docs/development/tools/formatting) and include the appropriate tests.
## 📄 许可证
## 📄 License
此项目基于 AGPL-3.0 许可证进行许可,详情请参阅 [LICENSE](LICENSE) 文件。
This project is licensed under the AGPL-3.0 LICENSE, see the [LICENSE](LICENSE) file for details.
## 💖 鸣谢
## 💖 Thanks
- 感谢 Flutter 团队提供出色的框架。
- 特别感谢开源社区的宝贵贡献。
- Thanks to the Flutter team for the excellent framework.
- Special thanks to the open source community for their valuable contributions.
## 🥪 Sponsor
You can buy me a sandwich to keep me motivated to continue developing.
<img src="res/sponsor/wechat.jpg" style="width:300px" alt="Sponsor"/>
### List of sponsors
If you want to appear on the list, you can leave your Github username in the comment, in no particular order, and the list will be updated regularly.
| Sponsor | Price | Sponsor | Price |
|-----------------------------------| -------- | ------------------------------------------------ | ------ |
| [dsxksss](https://github.com/dsxksss) | 50 CNY | 十* | 20 CNY |
| 沭** | 10 CNY | 朱东杰 | 60 CNY |
| *Person* | 5 CNY | wu* | 10 CNY |
| 云* | 2.76 CNY | 不对味的雪碧 | 10 CNY |
| w** | 6.6 CNY | [帕斯卡的芦苇](https://github.com/xiaoxianzi-99) | 10 CNY |
| 不** | 20 CNY | 曾** | 20 CNY |
| *Person* | 20 CNY | *Person* | 18.88 CNY |
| Lucci | 9.9 CNY | *Person* | 5 CNY |
| 宋** | 5 CNY | 翰** | 5 CNY |

189
README.zh.md Normal file
View File

@@ -0,0 +1,189 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/banner/dark_zh.svg">
<source media="(prefers-color-scheme: light)" srcset="res/banner/light_zh.svg">
<img alt="The preview for moodiary." src="res/banner/light_zh.svg">
</picture>
<p align="center">简体中文 | <a href="README.md">English</a></p>
<p align="center"><a href="https://answer.moodiary.net" target="_blank">官方论坛</a>丨QQ群: <a target="_blank" href="https://qm.qq.com/cgi-bin/qm/qr?k=xGr0TNp_X1z3XEn09_iE_iGSLolQwl6Y&jump_from=webapi&authKey=ZmSb2oEd94FSXxBXRBq53hgTjjvcfmgkQrduB3uL12XtRylPmRlO2OdFz6R25tIo">760014526</a>丨Telegram: <a target="_blank" href="https://t.me/openmoodiary">openmoodiary</a></p>
<div align="center">
<img src="https://img.shields.io/badge/Flutter-3.29.2-blue?style=for-the-badge">
<img src="https://img.shields.io/github/repo-size/ZhuJHua/moodiary?style=for-the-badge&color=ff7070">
<img src="https://img.shields.io/github/stars/ZhuJHua/moodiary?style=for-the-badge&color=965f8a">
<img src="https://img.shields.io/github/v/release/ZhuJHua/moodiary?style=for-the-badge&color=4f5e7f">
<img src="https://img.shields.io/github/license/ZhuJHua/moodiary?style=for-the-badge&color=4ac6b7">
</div>
## ✨ 功能特性
- **跨平台支持**:🌍 兼容 Android、iOS、Windows、MacOS、Linux\*。
- **Material Design**:🎨 界面直观且用户友好,遵循 Material Design 设计规范。
- **多种编辑器**:📝 支持 Markdown 、纯文本、富文本等多种形式的文本编辑。
- **多媒体附件**:📷 可以为你的日记添加图片、音频、视频甚至画一张画。
- **搜索和分类**:🔍 轻松通过全文搜索及分类管理你的日记。
- **自定义主题**:🌈 支持浅色和深色模式,以及多种配色的主题。
- **自定义字体**:✍️ 支持导入不同的字体,并支持可变字体。
- **数据安全**:🔒 通过密码来保障你的日记安全,支持通过生物识别解锁。
- **导出和分享**:🧾 支持所有数据的导入/导出,以及单篇日记的分享。
- **备份与同步**:☁ 支持局域网同步,快速在设备间同步数据,以及 WebDav 备份。
- **足迹地图**:🗺️ 在地图上查看你足迹,生活中的每一步都值得被记录。
- **智能助手**:💬 支持接入第三方大模型,提供问答、情绪分析等功能。
- **本地自然语言处理NLP**:🤖 更安全的智能助手,让你的日记更懂你。
(注:跨平台能力由 Flutter 提供,带 * 号的平台可能需要更多测试)
## 🔧 主要技术栈
- [Flutter](https://github.com/flutter/flutter)(跨平台 UI 框架)
- [Isar](https://github.com/isar/isar)(高性能本地数据库)
- [GetX](https://github.com/jonataslaw/getx)(状态管理框架)
## 📸 应用截图
> 应用持续更新中,新版本界面可能稍有变化
### 移动端
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/screenshot/mobile_dark_zh.webp">
<source media="(prefers-color-scheme: light)" srcset="res/screenshot/mobile_light_zh.webp">
<img alt="The mobile screenshot for moodiary." src="res/screenshot/mobile_light_zh.webp">
</picture>
### 桌面端
<picture>
<source media="(prefers-color-scheme: dark)" srcset="res/screenshot/desktop_dark_zh.webp">
<source media="(prefers-color-scheme: light)" srcset="res/screenshot/desktop_light_zh.webp">
<img alt="The desktop screenshot for moodiary." src="res/screenshot/desktop_light_zh.webp">
</picture>
## 🚀 安装指南
### 第三方 SDK
某些能力需要自行申请第三方 SDK下列服务商均提供免费的版本获取到的 Key 在实验室中配置。
#### 天气服务
- [和风天气](https://dev.qweather.com/docs/api/)
#### 地图服务
- [天地图](http://lbs.tianditu.gov.cn/server/MapService.html)
#### 智能助手
- [腾讯混元大模型](https://cloud.tencent.com/document/product/1729/97731)
### 直接安装
通过下载 Release 中已编译好的安装包来使用,如果没有你所需要的平台,请使用手动编译。
### 手动编译
#### 环境要求
> 我总是会使用最新的 Flutter 版本(如果可能的话),使用新版本可以带来更多的功能和更好的性能提升,永远不要使用老版本除非你希望代码变成一坨 💩
- Flutter SDK (>= 3.29.0 Stable)(建议使用 fvm 来管理 flutter 版本)
- Dart (>= 3.7.0)
- Rust 工具链Nightly
- Clang/LLVM
- 兼容的 IDE如 Android Studio、Visual Studio Code
#### 安装步骤
> 注意:出于安全考虑,我并没有在代码库中包含我的签名,当您需要手动打包时,需要自己修改对应平台的配置文件,例如安卓平台的 build.gradle修改包名后打包感谢您的理解
1. **克隆仓库**
```bash
git clone https://github.com/ZhuJHua/moodiary.git
cd moodiary
```
2. **安装依赖**
```bash
flutter pub get
```
3. **运行应用**
```bash
flutter run
```
4. **打包发布**
- Android: `flutter build apk`
- iOS: `flutter build ipa`
- Windows: `flutter build windows`
- MacOS: `flutter build macos`
## 📝 更多说明
### 自然语言处理NLP
> 处于实验阶段
如今,越来越多的行业产品开始融入 AI 技术,这无疑极大地提升了我们的使用体验。然而,对于日记应用来说,将数据交给大型模型处理并不可接受,因为无法确定这些数据是否会被用于训练。因此,更好的方法是采用本地模型。虽然由于体积限制,本地模型的能力可能不如大型模型强大,但在一定程度上仍能为我们提供必要的帮助。
目前,我在源码中集成了以下任务:
#### 基于 Bert 预训练模型的 SQuAD 任务
我采用了 MobileBert 来处理 SQuAD 任务,这是一个简单的机器阅读理解任务。你可以向它提出问题,它会返回你需要的答案。模型文件采用 TensorFlow Lite 所需的 `.tflite` 格式,所以你可以添加自己的模型文件到 `assets/tflite` 目录下。
感谢以下开源项目:
- [Chinese MobileBERT](https://github.com/ymcui/Chinese-MobileBERT)
- [Mobilebert](https://github.com/google-research/google-research/tree/master/mobilebert)
- [ChineseSquad](https://github.com/junzeng-pluto/ChineseSquad)
## 🤝 贡献指南
欢迎贡献!请按照以下步骤进行贡献:
1. Fork 本仓库。
2. 创建一个新分支(`git checkout -b feature-branch-name`)。
3. 提交你的修改(`git commit -am 'Add some feature'`)。
4. 推送到分支(`git push origin feature-branch-name`)。
5. 创建一个 Pull Request。
请确保你的代码遵循 [Flutter 风格指南](https://flutter.dev/docs/development/tools/formatting) 并包含适当的测试。
## 📄 许可证
此项目基于 AGPL-3.0 许可证进行许可,详情请参阅 [LICENSE](LICENSE) 文件。
## 💖 鸣谢
- 感谢 Flutter 团队提供出色的框架。
- 特别感谢开源社区的宝贵贡献。
## 🥪 捐助
可以给我买一个三明治,让我更有动力继续开发。
<img src="res/sponsor/wechat.jpg" style="width:300px" alt="Sponsor"/>
### 捐助者名单
如果您想要出现在名单中,可以在留言中留下您的 Github 用户名,排名不分先后,名单会定期更新。
| 捐助者 | 金额 | 捐助者 | 金额 |
| ------------------------------------- | -------- | ------------------------------------------------ | --------- |
| [dsxksss](https://github.com/dsxksss) | 50 CNY | 十* | 20 CNY |
| 沭** | 10 CNY | 朱东杰 | 60 CNY |
| *人* | 5 CNY | wu* | 10 CNY |
| 云* | 2.76 CNY | 不对味的雪碧 | 10 CNY |
| w** | 6.6 CNY | [帕斯卡的芦苇](https://github.com/xiaoxianzi-99) | 10 CNY |
| 不** | 20 CNY | 曾** | 20 CNY |
| *人* | 20 CNY | *人* | 18.88 CNY |
| Lucci | 9.9 CNY | *人* | 5 CNY |
| 宋** | 5 CNY | 翰** | 5 CNY |

View File

@@ -1,31 +1,24 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
prefer_const_constructors: true
prefer_const_literals_to_create_immutables: true
prefer_const_declarations: true
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
prefer_final_in_for_each: true
prefer_final_fields: true
prefer_final_locals: true
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "**/*.gr.dart"
- "**/*.mocks.dart"
- "rust_builder/**"
- "ios/**"
- "android/**"
- "windows/**"
- "macos/**"
errors:
invalid_annotation_target: ignore

4
android/.gitignore vendored
View File

@@ -1,8 +1,10 @@
gradle-wrapper.jar
/.gradle
/captures/
/app/.cxx
/.kotlin
/gradlew
/gradlew.bat
/gradlew.bats
/local.properties
GeneratedPluginRegistrant.java

View File

@@ -23,17 +23,17 @@ if (flutterVersionName == null) {
}
android {
namespace = "cn.yooss.mood_diary"
compileSdk = 35
ndkVersion = "27.1.12297006"
namespace = "cn.yooss.moodiary"
compileSdk = 36
ndkVersion = "28.0.13004108"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
jvmTarget = JavaVersion.VERSION_21.toString()
}
signingConfigs {
config {
@@ -51,10 +51,11 @@ android {
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdk = 26
targetSdk = 35
targetSdk = 36
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
ndk {
//noinspection ChromeOsAbiSupport
abiFilters 'arm64-v8a'
}
}
@@ -68,6 +69,9 @@ android {
}
debug {
signingConfig = signingConfigs.config
resValue "string", "app_name", "Moodiary Debug"
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
}
profile {
signingConfig = signingConfigs.config
@@ -79,6 +83,7 @@ flutter {
source = "../.."
}
dependencies {
implementation 'com.github.gzu-liyujiang:Android_CN_OAID:4.2.9'
implementation 'com.github.gzu-liyujiang:Android_CN_OAID:4.2.11'
implementation 'com.google.android.material:material:1.12.0'
}

View File

@@ -33,11 +33,11 @@
</queries>
<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="@string/appName"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/launcher_icon"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:usesCleartextTraffic="true">
<activity

View File

@@ -1,16 +0,0 @@
package cn.yooss.mood_diary
import com.github.gzuliyujiang.oaid.IGetter
import io.flutter.plugin.common.MethodChannel
import java.lang.Exception
class HandleGetOAID(private var resultCallback: MethodChannel.Result) : IGetter {
override fun onOAIDGetComplete(result: String?) {
resultCallback.success(result);
}
override fun onOAIDGetError(error: Exception?) {
resultCallback.error("100", "error", error);
}
}

View File

@@ -1,18 +1,14 @@
package cn.yooss.mood_diary
package cn.yooss.moodiary
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import com.github.gzuliyujiang.oaid.DeviceID
import com.github.gzuliyujiang.oaid.IGetter
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
class MainActivity : FlutterFragmentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)
}
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
@@ -29,13 +25,24 @@ class MainActivity : FlutterFragmentActivity() {
}
}
}
}
private fun getOAID(resultCallback: MethodChannel.Result) {
if (DeviceID.supportedOAID(application)) {
DeviceID.getOAID(application, HandleGetOAID(resultCallback));
DeviceID.getOAID(application, HandleGetOAID(resultCallback))
} else {
resultCallback.success(null)
}
}
}
class HandleGetOAID(private var resultCallback: MethodChannel.Result) : IGetter {
override fun onOAIDGetComplete(result: String) {
resultCallback.success(result)
}
override fun onOAIDGetError(error: Exception?) {
resultCallback.success(null)
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill"
android:src="@drawable/background" />
</item>
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash" />
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:gravity="fill"
android:src="@drawable/background" />
</item>
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash" />
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<item>
<bitmap
android:gravity="fill"
android:src="@drawable/background" />
</item>
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
android:src="@drawable/splash" />
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

View File

@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>-->
<!-- <bitmap-->
<!-- android:gravity="center"-->
<!-- android:src="@mipmap/ic_launcher_foreground" />-->
<!-- </item>-->
<item>
<bitmap
android:gravity="fill"
android:src="@drawable/background" />
</item>
<item>
<bitmap
android:gravity="center"
android:src="@drawable/splash" />
</item>
</layer-list>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<monochrome android:drawable="@mipmap/ic_launcher_foreground" />
</adaptive-icon>

View File

@@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
<monochrome>
<inset
android:drawable="@drawable/ic_launcher_monochrome"
android:inset="16%" />
</monochrome>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1016 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#000000</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -5,6 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -12,7 +16,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#ffffff</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="appName">Moodiary</string>
<string name="app_name">Moodiary</string>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="appName">心绪日记</string>
</resources>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="appName">心绪日记</string>
<color name="ic_launcher_background">#ffffff</color>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>

View File

@@ -5,6 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -12,7 +16,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<style name="NormalTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@@ -2,22 +2,40 @@ allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
maven { url "https://tencent-tds-maven.pkg.coding.net/repository/shiply/repo" }
maven { url "https://storage.googleapis.com/download.flutter.io" }
maven { url 'https://jitpack.io' }
maven { url 'https://developer.hihonor.com/repo' }
maven { url 'https://developer.huawei.com/repo' }
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 36
buildToolsVersion "36.0.0"
}
}
if (project.hasProperty("android")) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
subprojects {
project.evaluationDependsOn(":app")
}

View File

@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.9-all.zip
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.11.1-all.zip

90
android/gradlew.bat vendored Executable file
View File

@@ -0,0 +1,90 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@@ -16,15 +16,17 @@ pluginManagement {
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/nexus/content/groups/public" }
maven { url "https://tencent-tds-maven.pkg.coding.net/repository/shiply/repo" }
maven { url "https://storage.googleapis.com/download.flutter.io" }
maven { url 'https://jitpack.io' }
maven { url 'https://developer.hihonor.com/repo' }
maven { url 'https://developer.huawei.com/repo' }
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '8.7.1' apply false
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
id "com.android.application" version '8.9.1' apply false
id "org.jetbrains.kotlin.android" version "2.1.20" apply false
}
include ":app"

Some files were not shown because too many files have changed in this diff Show More