shenleban tongying
76aaed116b
clean: delete gddebug
2024-11-21 12:17:03 -05:00
shenleban tongying
0680edd1e9
clean: delete unused QSemaphore and do a header cleanup
SonarCloud / Build and analyze (push) Waiting to run
2024-11-21 13:06:17 +00:00
shenleban tongying
f2ce85cda2
clean: remove duplicated getName
overrides
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 07:50:43 -05:00
shenleban tongying
5b9a1611ff
clean: delete stub_msvc.h
2024-11-20 05:27:01 -05:00
shenleban tongying
112874b0e3
clean: unify a common idx file read pattern uint32_t size + data
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 03:22:08 -05:00
shenleban tongying
fa9ad2fdf7
clean: delete useless fopen style mode char* API from File::Index
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 03:56:23 +00:00
shenleban tongying
c8af0450f1
clean: remove redundant gd::toWString
2024-11-12 19:32:13 -05:00
shenleban tongying
c864a9a897
clean: remaning deprecated QCryptographicHash::addData
usages
2024-11-07 02:05:54 -05:00
YiFang Xiao
2ca5568b84
fix: [mdx] use file name as dictionary name when title has not been set
2024-10-28 00:04:53 +08:00
xiaoyifang
939e786331
opt: [mdx]js script with defer attribute ( #1869 )
...
* fix: [mdx] dictionary script element with defer
2024-10-26 19:28:16 +08:00
xiaoyifang
01b9814760
opt: rewrite the logic of determine the existence of audio link ( #1860 )
...
* opt: rewrite the logic of determine the existence of audio link
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-24 13:32:21 +00:00
xiaoyifang
e749a6077f
fix: disable anchor default behavior ( #1857 )
...
* fix: prevent anchor link default behavior (in mdx dictionary)
2024-10-24 21:05:59 +08:00
shenleban tongying
a11c9e3aec
clean: mass apply clang-tidy's readability-braces-around-statements
2024-10-10 03:21:27 -04:00
shenleban tongying
58f346f23e
fix: mark all Idxheader
packed explicitly
SonarCloud / Build and analyze (push) Has been cancelled
2024-09-25 06:09:01 -04:00
shenleban tongying
2a918d5fdd
refactor: reorganize dictionary processing related code
2024-09-24 21:29:59 -04:00
xiaoyifang
fc3ea0045e
opt: remove fulltext unused logic ( #1733 )
...
* opt: remove fulltext unused logic
the firstIteration is not used any more
2024-08-24 07:45:45 +08:00
xiaoyifang
9332763f67
fix: prioritize the manual set full text index option per dictionary ( #1730 )
...
* fix: prioritize the manual set full text index option per dictionary
2024-08-21 13:42:56 +08:00
xiaoyifang
21aeb27c15
fix: [mdx]object data html ( #1602 )
...
* fix: mdx object data subsitition
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-21 21:05:13 +08:00
shenleban tongying
5c9f67b09c
opt: port away QRegExp in langcoder.cc
2024-06-19 02:10:17 -04:00
shenleban tongying
3a0880fa81
clean: rename LangCoder::findIdsForFilename/findIdsForName/exists
2024-06-18 21:19:18 -04:00
shenleban tongying
e6a2be83ae
fix: srcset
of <img>
in mdx format won't show image ( #1536 )
...
Co-authored-by: xiaoyifang <105986+xiaoyifang@users.noreply.github.com>
2024-05-29 09:07:23 -04:00
shenleban tongying
f8c0e8cd17
clean: rename File::Class to what it is really used.
2024-03-23 00:29:51 -04:00
YiFang Xiao
28924b5953
opt:refactor code
2024-01-27 10:56:34 +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
245923a084
fix: allow video to be dragged around
2023-10-09 23:13:02 +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
autofix-ci[bot]
c273622851
[autofix.ci] apply automated fixes
2023-09-02 04:24:55 +00:00
YiFang Xiao
4226abf593
opt: refactor the compare logic
2023-09-02 12:23:13 +08:00
xiaoyifang
6ba8b0c16b
feat: add an option to make debug dictionary easier ( #1086 )
...
* feat: add an option to make debug dictionary easier
* fix: code smells
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-26 13:19:21 +08:00
YiFang Xiao
a1de6ce637
opt: optimize the removeDirectory method
2023-08-05 19:36:33 +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
YiFang Xiao
ea94673a53
opt: remove unnecessary code
2023-07-27 17:26:44 +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
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
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
shenleban tongying
1589e14b70
clean: remove redundant dictionaryNativeIcon
...
`dictionaryNativeIcon` was intended to access the original icon before none-square icons were transformed into squares.
`dictionaryNativeIcon` is only used in dictionaryBar, but according to the intention, it shouldn't.
In reality, `dictionaryNativeIcon` is almost always equal to `dictionaryIcon`.
2023-06-18 22:37:07 -04:00
YiFang Xiao
eccc3eaf0f
Revert "opt: mdx video url"
...
This reverts commit 2bd5194c91
.
accidently merged.
2023-06-06 23:45:04 +08:00
xiaoyifang
5899aa7c94
fix: highlight fts search result ( #792 )
...
* fix: highlight fts search result
* 🎨 apply clang-format changes
* remove accent/diacritic handler used in fts search
* header file adjustment
* fix: qt5.15 compile
* fix: code smell
use const reference variable
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* 🎨 apply clang-format changes
* fix: code smells
🎨 apply clang-format changes
* opt: fix code smells
remove unused parameters from function `ftsIndexIsOldOrBad`
🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-03 08:29:19 +08:00
YiFang Xiao
2bd5194c91
opt: mdx video url
2023-06-02 21:47:48 +08:00
xiaoyifang
4147770f85
Opt: ftshelper refactor ( #760 )
...
* opt: remove useless ftshelper methods
🎨 apply clang-format changes
opt: slob use xapian as fulltext engine
🎨 apply clang-format changes
opt: refactor ftshelper
🎨 apply clang-format changes
* opt: refactor ftshelper
remove unused variabes and functions.
* 🎨 apply clang-format changes
* opt: refactor ftshelper
remove unused variabes and functions.
* opt: refactor ftshelper
remove unused variabes and functions.
🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-31 07:42:31 +08:00
YiFang Xiao
15e0fa087f
opt: replace Mutex::Lock with QMutexLocker
2023-05-30 00:08:01 +08:00
xiaoyifang
4eb8374a35
opt: mdx fulltext lock seperated with normal search ( #759 )
...
* opt: refactor mdx fullindex creation
* opt: incremental fulltext creation logic change
* opt: incremental fulltext creation logic change
* opt: progress of fulltext creation logic
* opt: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* 🎨 apply clang-format changes
* fix: code smell
* fix: code smell
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-29 00:01:21 +08:00
xiaoyifang
defc2447cf
opt: convert escape string to rawstring ( #749 )
...
* opt: convert escape string to rawstring
* 🎨 apply clang-format changes
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-27 00:27:50 +08:00
xiaoyifang
715512eda3
feat: allow to customize dictionary name ( #722 )
...
* feat: allow to customize dictionary name
* 🎨 apply clang-format changes
* fix: code smell
* feat: allow to set custom dictionary name
* 🎨 apply clang-format changes
* feat: add doc for customizing dictionary name
* 🎨 apply clang-format changes
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 22:33:20 +08:00
xiaoyifang
cce633b2cc
opt:refactor an implict string conversion to a purposeful name
...
fix #586
2023-04-30 13:45:11 +08:00
xiaoyifang
325c3fb0bb
opt: replace qthreadpool with qfuture
...
relate #515
2023-04-29 18:08:39 +08:00
xiaoyifang
dbe04db7f5
opt: move fsencoding to utils.hh(.cc)
...
after multi refactor ,the fsencoding only left two methods and has nothing to do with encoding . Base on this condition ,move the method to utils
2023-04-29 00:56:22 +08:00
shenleban tongying
03af31c6fc
refactor: move common/base/utils into /src/common/
2023-04-17 20:41:47 -04:00