Commit graph

790 commits

Author SHA1 Message Date
YiFang Xiao 091080940f fix: fts temp folder deletion 2023-08-05 20:37:58 +08:00
YiFang Xiao a1de6ce637 opt: optimize the removeDirectory method 2023-08-05 19:36:33 +08:00
YiFang Xiao 43b070add5 fix: code smells 2023-08-05 11:32:19 +08:00
YiFang Xiao a8c3207a76 opt: full text index compact 2023-08-05 10:57:20 +08:00
xiaoyifang ac8e79358c
fix: website dictionary base tag (#1038)
* fix: website dictionary base tag

* [autofix.ci] apply automated fixes

* fix: request header origin

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-03 21:29:36 +08:00
xiaoyifang 217ba5318a
Merge pull request #1034 from xiaoyifang/fix/float-lose-focuse
fix: translate line in floatable toolbar will lose focus
2023-08-01 20:52:05 +08:00
YiFang Xiao 9ca8d057db fix: minor change to the label text 2023-08-01 19:29:10 +08:00
YiFang Xiao 73cbbac6f9 fix: translate line in floatable toolbar will lose focus
fix #1001
2023-08-01 19:26:11 +08:00
xiaoyifang f7e43479d6
Merge pull request #1029 from xiaoyifang/opt/load-slow
opt: optimize the startup speed
2023-07-30 16:50:23 +08:00
autofix-ci[bot] ecdd5166c2 [autofix.ci] apply automated fixes 2023-07-30 16:16:21 +08:00
YiFang Xiao 86eaf18121 opt: optimize the startup speed 2023-07-30 16:13:09 +08:00
shenleban tongying 67f5b1333b
fix: cmake version.txt generation in non-git environments
This was not well defined.
2023-07-30 01:42:41 -04:00
YiFang Xiao 840b7ec12c fix: sonar warning about uninitialized variable
fix #1025
2023-07-30 10:48:49 +08:00
YiFang Xiao 03356fdfab fix: code smells 2023-07-30 08:47:54 +08:00
autofix-ci[bot] a90a79bce2
[autofix.ci] apply automated fixes 2023-07-29 16:54:22 +00:00
YiFang Xiao 2f118da828 opt: convert for loop into modern for range 2023-07-30 00:52:31 +08:00
YiFang Xiao fe1fd14e31 opt: optimize loading splash dialog with loading/check information
[autofix.ci] apply automated fixes
2023-07-30 00:52:28 +08:00
xiaoyifang 0585f5daa4
opt: auto-generate dictionary icon with color (#1021)
* opt: auto-generate dictionary icon with color

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-29 15:08:53 +08:00
YiFang Xiao 149f2bb7de fix: add handlePath log 2023-07-29 14:06:38 +08:00
shenlebantongying 1ffd729614 fix: Qt6.4/5's maximize bug https://bugreports.qt.io/browse/QTBUG-115074 2023-07-27 23:27:46 -04:00
xiaoyifang 88117306a7 Revert "fix: restore maximize geometry (#1013)"
This reverts commit cd560f85fd.
2023-07-27 23:20:16 +08:00
YiFang Xiao ea94673a53 opt: remove unnecessary code 2023-07-27 17:26:44 +08:00
xiaoyifang cd560f85fd
fix: restore maximize geometry (#1013)
* fix: restore maximize geometry

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-27 17:09:06 +08:00
YiFang Xiao 3941601fbd fix: code smells
[autofix.ci] apply automated fixes
2023-07-27 11:29:20 +08:00
YiFang Xiao 5db4491505 fix: simultaneous playing sound in wikipedia
click the audio link repeatly in wikipedia will cuase the sound to play simultaneously

[autofix.ci] apply automated fixes
2023-07-27 11:29:20 +08:00
shenleban tongying 6539775c4f
use qt header 2023-07-26 20:48:50 -04:00
autofix-ci[bot] 1502dc318a
[autofix.ci] apply automated fixes 2023-07-27 00:29:51 +00:00
YiFang Xiao 0ed2f697cd fix: alt+down/alt+up navigation through dictionary 2023-07-27 08:27:46 +08:00
YiFang Xiao 9e5ce992ca fix: support space and pageup/pagedown shortkey to navigate through the page 2023-07-27 08:06:48 +08:00
xiaoyifang dbb11e293b
opt: optimize the process of audio link which start with double // (#1008)
* opt: optimize the process of audio link which start with double //

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-26 23:03:03 +08:00
xiaoyifang 17cd445607
feat: customize dictionary's fullindex option with metadata.toml (#1000)
* feat: customize dictionary's fullindex option with metadata.toml

* [autofix.ci] apply automated fixes

* feat: display fulltext status in the dictionary info dialog

* [autofix.ci] apply automated fixes

* doc: add document about how to enable dictionary's fullindex feature

* Update src/metadata.cc

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update src/ui/dictinfo.ui

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/mkdocs.yml

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* Update website/docs/custom_dictionary.md

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

* add images

* feat: show fulltext search status in dictionary info dialog

* Update dictinfo.cc

* [autofix.ci] apply automated fixes

* ui: change layout

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2023-07-26 10:03:20 +08:00
xiaoyifang d3e6018401
fix: wikipedia open blank page in edge browser (#1003)
* fix: wikipedia open blank page in edge browser

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-25 23:55:41 +08:00
shenleban tongying f9b1d3fa92
fix typo of app id 2023-07-25 08:04:49 -04:00
shenleban tongying 53d82f97ca
Another various changes required by Flatpak 2023-07-24 06:58:56 -04:00
shenleban tongying a4542d8b6c
fix: a few build problems about zim/slob ,epwing (#992)
* fix: a few build problems

* slob should not depends on MAKE_ZIM_SUPPORT
* cmake failed to build when WITH_EPWING disabled.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-22 13:50:57 +08:00
YiFang Xiao d25e054a93 opt: replace program dictionary icon 2023-07-21 15:53:53 +08:00
YiFang Xiao 0b087e40f1 opt: replace lsa dictionary icon and zipsound icon 2023-07-21 14:34:09 +08:00
YiFang Xiao 46d62ebf8c opt: replace sounddir dictionary icon 2023-07-21 14:10:40 +08:00
xiaoyifang e5f91f6a3e
feat: use parallel thread to create the fts (#980)
* feat: use parallel thread to create the fts

* [autofix.ci] apply automated fixes

* feat: use parallel thread to create the fts

* feat: add an option to control the thread count when create the fulltext

* [autofix.ci] apply automated fixes

* feat: set default parallel thread count to half the cpu numbers

* feat: initialize the default parallel threads to 1/3 of cpu cores

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 22:50:32 +08:00
xiaoyifang df4bc68248
fix: [regression]scanpopup right context menu lost dictionary list (#989)
* fix: [regression]scanpopup right context menu lost dictionary list

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 22:49:37 +08:00
shenleban tongying 8471029770
feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS (#986)
* feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 20:10:44 +08:00
autofix-ci[bot] 0450422959
[autofix.ci] apply automated fixes 2023-07-20 08:05:17 +00:00
shenleban tongying b5349478cf
clean: reformat everything
The next commit will add `.git-blame-ignore-revs`

https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
2023-07-20 04:02:22 -04:00
YiFang Xiao b39d931c08 fix: sound played twice in popup dialog 2023-07-19 13:44:26 +08:00
shenleban tongying 1180f8bc32
fix: website/program should not appears in "AutoGroupByFolder" 2023-07-17 23:27:46 -04:00
xiaoyifang b3d9d79816
fix: pronounce the first dictionary audio if availabe (#981)
* fix: pronounce the first dictionary audio if availabe

fix #978

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-18 07:57:02 +08:00
xiaoyifang 55fef3e231
opt: use qcache to hold mdx css file (#970)
* opt: use qcache to hold mdx css file

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-07-17 21:51:56 +08:00
xiaoyifang ec06124acb
feat: sync group widget with tab (one group per tab) (#976)
* feat: sync group widget with tab

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-17 08:24:02 +08:00
shenleban tongying 4be457ba2d opt: rewrite release check
* check 1 time per day on startup and no more
* use github's release api instead of scraping the html page
2023-07-16 20:32:11 +08:00
xiaoyifang ce8b8a60bb
feat: add font customization (#973)
* action: auto clang format changes

action: clang-format

* feat: add separator tab to configure the font family for the web engine.

feat: custom fonts

feat: add custom font

i18n: update crowdin translation files

* [autofix.ci] apply automated fixes

* feat: add notice about the font customization

* feat: adjust interface layout

* i18n: update transaltion source

* fix: code smells

* feat: custom font layout adjustment

* i18n: update translation items

* feat: adjust layout of custom fonts

* i18n: new

* feat: adjust layout

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-16 18:54:07 +08:00