Commit graph

988 commits

Author SHA1 Message Date
autofix-ci[bot] 6890a952b3
[autofix.ci] apply automated fixes 2023-12-30 10:15:05 +00:00
YiFang Xiao fa7b3db0bc opt: use qtcpsocket signal to implement the dictserver protocol 2023-12-30 18:13:36 +08:00
YiFang Xiao e35dc22467 opt: link style in the welcomepage 2023-12-21 11:36:58 +08:00
YiFang Xiao 2dbd713ca4 opt: remove popup html 2023-12-21 10:50:15 +08:00
YiFang Xiao 722b11517c opt: welcome page text refinement 2023-12-21 10:46:27 +08:00
YiFang Xiao b5a1192cfd opt: use link instead of button and tooltip 2023-12-20 15:04:57 +08:00
xiaoyifang 17d46fcac1
Merge pull request #1322 from shenlebantongying/mv-impl
clean: move dict implementations out of headers
2023-12-12 14:14:02 +08:00
shenleban tongying cbf5cfee7a
clean: move dict implementations out of headers
class with Q_OBJECT can be defined .cpp file by including .moc
explicitly
2023-12-11 21:21:50 -05:00
YiFang Xiao cdf1ed22ef replace highdpi_scaling with the new name 2023-12-11 17:22:05 +08:00
YiFang Xiao b207691334 opt: remove disable-web-security parameter
this parameter has not documented
2023-12-11 17:19:07 +08:00
xiaoyifang b148ed1da4
Merge pull request #1312 from xiaoyifang/opt/fts-last-pos
opt: the address maybe not ordered
2023-12-06 15:23:44 +08:00
xiaoyifang fc62d115f3
Merge pull request #1311 from xiaoyifang/opt/highlight-term
opt: mark exact word
2023-12-06 15:23:30 +08:00
YiFang Xiao df594e0108 opt: the address maybe not ordered
should not use equal( == ) comparision
2023-12-06 14:57:44 +08:00
YiFang Xiao 923a46217b opt: mark exact word 2023-12-06 14:29:59 +08:00
YiFang Xiao d15cafed49 fix: image temp path 2023-12-06 11:16:35 +08:00
xiaoyifang 9c5e25971b
opt: support to open image in system viewer (#1309)
* opt: open image in external

fix have to wait the resource downloaded

* [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-12-06 09:44:17 +08:00
xiaoyifang 64f69d2235
opt: open image in external tool (#1308)
* opt: open image in external tool

* [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-12-05 14:59:45 +08:00
xiaoyifang 46e8af5f36
opt: xapian optimize search experience (#1304)
* opt: xapian optimize search experience

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-30 09:49:09 +08:00
YiFang Xiao f03d8b5ea1 opt: do not set the default text 2023-11-29 17:14:51 +08:00
YiFang Xiao 439b780db5 opt: use a new way to handle the highlight matched terms in the fulltext search view page. 2023-11-25 17:13:33 +08:00
xiaoyifang 8c87b934d4
opt: refactor the escape(unescap)Amps (#1300)
* opt: refactor the escape(unescap)Amps

* [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-11-24 18:18:14 +08:00
xiaoyifang 1e0823147a
opt: enable xapian position on default (#1299)
* opt: enable xapian position on default

* [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-11-24 11:03:21 +08:00
xiaoyifang fb85f68b21
fix: js undefined error (#1298)
* fix: js undefined error

* [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-11-23 22:00:19 +08:00
shenleban tongying 30572321f7 fix: force wayland should work for BSD, also remove a unnecessary env check for macOS 2023-11-18 12:46:43 -05:00
xiaoyifang a211d78292
Merge pull request #1284 from xiaoyifang/fix/website-port
fix: website default port
2023-11-13 14:13:41 +08:00
YiFang Xiao d3531b6477 fix: website default port 2023-11-13 10:37:22 +08:00
YiFang Xiao 9a99b392e9 opt: skip mdx 3.0 dictionary 2023-11-12 19:21:57 +08:00
xiaoyifang b2a8eec2a5
fix: dsl encoding detection enhanced. (#1279)
* fix: detect dsl encoding

* [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-11-11 16:17:58 +08:00
YiFang Xiao 8c8f40cb53 opt: remove log 2023-11-10 17:47:04 +08:00
YiFang Xiao dd4812f086 fix: dictserver connect timeout change to 2 seconds 2023-11-07 20:54:02 +08:00
xiaoyifang 2bcf4890db opt: refactor database retrieve logic (#1272)
* opt: refactor database retrieve logic

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-07 20:53:05 +08:00
xiaoyifang 10595ab50e
fix: epwing dictionary parsing error (#1263)
* fix: epwing dictionary parsing error

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-29 12:26:58 +08:00
autofix-ci[bot] d2e45e3017
[autofix.ci] apply automated fixes 2023-10-28 05:25:10 +00:00
YiFang Xiao b9e19fdd35 opt: log message 2023-10-28 13:23:14 +08:00
YiFang Xiao 87ae7899ae fix: when path is / only ,there is no need to rearrange the parameters 2023-10-28 13:22:21 +08:00
xiaoyifang 6e7779bd80
Merge pull request #1259 from xiaoyifang/opt/wiki-request-timeout
opt: wikipedia word list optimization
2023-10-27 14:51:01 +08:00
YiFang Xiao bdf5fed904 opt: wikipedia word list optimization 2023-10-27 11:23:52 +08:00
xiaoyifang 78bd94f965
fix: mouse xbutton1(&2) back and forward event (#1258)
* fix: mouse xbutton1(&2) back and forward event

* [autofix.ci] apply automated fixes

* fix: mouse xbutton1&2 back and forward triggered twice.

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-27 07:51:34 +08:00
shenleban tongying b2b865a2cb
feat: add GOLDENDICT_FORCE_WAYLAND to force wayland 2023-10-23 01:45:08 -04:00
autofix-ci[bot] 7f9f203eb6
[autofix.ci] apply automated fixes 2023-10-21 13:40:04 +00:00
YiFang Xiao 6f86102b3a optimize the default css font 2023-10-21 21:30:35 +08:00
xiaoyifang 22f35dd7ee
opt: remove dictionary debug mode (#1249)
* opt: remove dictionary debug mode

* opt: remove dictionary debug mode
2023-10-19 07:37:42 +08:00
YiFang Xiao f0dcc362fa action: remove qt version from check action 2023-10-16 14:47:31 +08:00
xiaoyifang 564d3ddffc
opt: refactor code (#1243)
* opt: refactor code

* opt: refactor str2map method

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-16 07:37:10 +08:00
xiaoyifang 5de4690b2d
fix: audio device change handled (#1242)
* fix: audio device change handled

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-15 23:15:45 +08:00
xiaoyifang 0fbcdda72f
opt: use italic to indicate the no results (#1232)
* opt: use italic to indicate the no results

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-15 22:36:39 +08:00
xiaoyifang 7767d42d2a
Merge pull request #1239 from xiaoyifang/fix/dict-server-hang
fix: reduce wait time on socket
2023-10-13 21:53:58 +08:00
YiFang Xiao 5ec6d50167 fix: reduce wait time on socket 2023-10-13 20:18:33 +08:00
xiaoyifang 01d997a528
opt: remove SecureScheme from custom url register (#1237)
* opt: remove SecureScheme from custom url register

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-13 20:10:09 +08:00
xiaoyifang e8a2eadade
opt: indexing dictionary in status bar does not disappear (#1234)
* opt: indexing dictionary name and progress

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-13 10:43:52 +08:00
YiFang Xiao 0da578c2a3 fix: dsl dictionary crash when creating full text index.
fix #1230
2023-10-12 14:53:08 +08:00
xiaoyifang 0bf06a3099
Merge pull request #1225 from xiaoyifang/opt/refactor-code
opt: make code more readable
2023-10-10 22:57:59 +08:00
xiaoyifang 0be3afa90a
opt: history addItem logic optimization (#1224)
* opt: history addItem logic optimization

* opt: move history logic after url load

* opt: move history logic after url load

* opt: remove Item from history

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
2023-10-10 22:57:26 +08:00
YiFang Xiao f274e658ed fix: remove unused method 2023-10-10 21:37:11 +08:00
YiFang Xiao a45c95ebde opt: refactor some method 2023-10-10 21:29:14 +08:00
YiFang Xiao b4cbf24570 fix: scanpopup flash content
[autofix.ci] apply automated fixes
2023-10-10 21:29:11 +08:00
YiFang Xiao 375b599f6b opt: make code more readable 2023-10-10 10:13:34 +08:00
xiaoyifang d1d654226a
Merge pull request #1199 from xiaoyifang/opt/resource-performance
opt: experimental changes, resource performance, support gdvideo
2023-10-10 07:38:58 +08:00
狂风代码 c0f697b3ec
Add default font style for phonetic symbols (#1223)
* Add default font style for phonetic symbols

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-10 07:38:26 +08:00
YiFang Xiao 245923a084 fix: allow video to be dragged around 2023-10-09 23:13:02 +08:00
YiFang Xiao ffc4ccbb03 opt: use a different way to handle the resources 2023-10-09 23:12:57 +08:00
xiaoyifang b1781b63d6
opt: remove gdpicture & maxPictureWidth which has not been used at all. (#1220)
* opt: remove gdpicture protocol which has lost effect for a long time

* opt: remove maxPictureWidth which has no place to configure this variable value

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-09 19:58:16 +08:00
YiFang Xiao 526621a9c9 opt: remove invalid css style in the style file
[autofix.ci] apply automated fixes
2023-10-09 19:56:37 +08:00
YiFang Xiao 5e148eaea6 fix: fix image path in default article css
[autofix.ci] apply automated fixes
2023-10-09 19:56:34 +08:00
xiaoyifang 64529805ff
fix: dsl max width image (#1217)
* fix: dsl max width image

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-09 14:06:38 +08:00
autofix-ci[bot] e3f6a2849c
[autofix.ci] apply automated fixes 2023-10-08 15:36:55 +00:00
YiFang Xiao 7ec51d9453 fix: use more meaningful tag name 2023-10-08 23:35:12 +08:00
YiFang Xiao 6f9fa8eaa7 fix: mdx audio/video html5 tag src value replacement
[autofix.ci] apply automated fixes
2023-10-08 23:35:09 +08:00
YiFang Xiao 4465355502 fix: invalid url response with 206 partial content many times
[autofix.ci] apply automated fixes
2023-10-08 23:35:05 +08:00
xiaoyifang 3ab2d10e16
opt: remove the reply attribute settings which is not supported in we… (#1200)
* opt: remove the reply attribute settings which is not supported in webengine

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-08 21:50:17 +08:00
xiaoyifang 9578ca3ded
Merge pull request #1215 from xiaoyifang/opt/save-article
fix: save article , process qrc protocol link
2023-10-08 21:42:44 +08:00
YiFang Xiao 810c4b32a2 fix: save article , process qrc protocol link 2023-10-08 16:14:51 +08:00
YiFang Xiao 744b480b1b opt: in the darkmode , set image background to white in case the backgroud is transparent 2023-10-08 10:39:35 +08:00
xiaoyifang 9c3ee03ea9
Merge pull request #1207 from xiaoyifang/opt/request-stall
opt: reduce the network stall time
2023-10-07 22:08:00 +08:00
xiaoyifang 8798f04312
Merge pull request #1210 from xiaoyifang/opt/code-smell
refactor: use static class method instead of instance method
2023-10-07 21:51:26 +08:00
xiaoyifang 47293ada62
Merge pull request #1209 from xiaoyifang/fix/fontsize
fix: word zoom does not work in completer
2023-10-07 21:51:06 +08:00
YiFang Xiao b754a24c6c refactor: reduce nested loop depth 2023-10-07 21:36:40 +08:00
YiFang Xiao 8d46d38a3d refactor: use static class method instead of instance method 2023-10-07 21:29:04 +08:00
YiFang Xiao da9d90efec fix: word zoom does not work in completer 2023-10-07 21:13:12 +08:00
YiFang Xiao f2094bad6c fix: typo 2023-10-07 20:53:14 +08:00
xiaoyifang aebf85ef4a
opt: refactor the code to show untitle & welcome page (#1203)
* opt: refactor the code to show untitle & welcome page

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-07 20:49:38 +08:00
YiFang Xiao e69aabf296 opt: reduce the network stall time 2023-10-07 20:44:36 +08:00
xiaoyifang db0ca76ead
opt: convert for loop to for-range (#1201)
* opt: convert for loop to for-range

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-06 20:59:27 +08:00
xiaoyifang 649cf17595
Merge pull request #1198 from shenlebantongying/fts_crash
fix: makeFTSIndex crash at startup when indexed articleCount is zero
2023-10-06 16:24:47 +08:00
autofix-ci[bot] b3b1a532d0
[autofix.ci] apply automated fixes 2023-10-06 04:54:58 +00:00
shenleban tongying e057722bf9
fix: makeFTSIndex crash when indexed articleCount is zero 2023-10-06 00:45:46 -04:00
autofix-ci[bot] b0975f0253
[autofix.ci] apply automated fixes 2023-10-06 03:59:44 +00:00
shenleban tongying 2bd148dcba
fix: avoid QFile::readall when loading resources 2023-10-05 23:49:26 -04:00
YiFang Xiao 26b04fc9b2 i18n: fix typo in Lingua Libre Dialog
fix #1190
2023-10-03 08:02:24 +08:00
xiaoyifang 660b9fb7f9
fix: long headword cause crash (#1186)
* fix: long headword cause crash

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-30 20:42:38 +08:00
YiFang Xiao c9d7ab2c63 fix: font missing cause phonetic symbols can not displayed correctly 2023-09-30 18:32:18 +08:00
xiaoyifang 471f20f140
Merge pull request #1183 from xiaoyifang/fix/popup-min-height
fix: suggestion list set a minimum height
2023-09-30 11:53:08 +08:00
xiaoyifang ef6e878a31
opt: add translation windows when invoked from console (#1173)
* opt: add an extra console argument to specify the translation windows

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-30 11:40:40 +08:00
YiFang Xiao 3af334a093 fix: suggestion list set a minimum height 2023-09-30 11:23:29 +08:00
YiFang Xiao fa79148d4d opt: change font family 2023-09-28 14:12:42 +08:00
xiaoyifang ec2856336c
opt: add option to disable tts component (#1169)
* opt: add tts config option

* opt:[macos] disable tts by default

* [autofix.ci] apply automated fixes

* opt: add build flags to about dialog

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-26 11:09:05 +08:00
xiaoyifang 19e848ec50
fix: enter event in translate textline (#1158)
* fix: enter event in translate textline

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-21 07:44:58 +08:00
xiaoyifang dcc4b19b56
fix: popup enter does not work (#1149)
* fix: popup enter does not work

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-17 11:13:08 +08:00
xiaoyifang 5154e0061f
fix: website dictionary with port in the url (#1148)
* fix: website dictionary with port in the url

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-17 10:38:29 +08:00
YiFang Xiao 424642cb3d fix: suggestion list scroll to the top 2023-09-14 08:06:42 +08:00