qwqcode
1d5811a59c
feat(config): enhance config file and data dir retrieval ( #992 )
...
* feat(config): enhance config file and data dir retrieval
- Add xdg package for XDG base directory support
- Update RetrieveConfigFile to search in XDG_CONFIG_HOME and /etc
- Add RetrieveDataDir to find data directory in XDG_DATA_HOME and /var/lib
- Improve comments for better understanding of search order
* add unit tests
2024-10-03 15:04:42 +08:00
qwqcode
6b0e46c86c
refactor(go): hardcode version and get commit_hash via runtime/debug
2024-09-18 22:01:21 +08:00
qwqcode
cf7725edba
refactor(go): bump the module version and support go install ( #979 )
...
BREAKING CHANGE: The original Go module name was `github.com/ArtalkJS/Artalk`, which has now been modified to `github.com/artalkjs/artalk/v2` (all lowercase). This change may affect the CI pipeline or other areas if you are compiling the Artalk server and have specified the fixed Go module name. Regarding the original `-ldflags -X github.com/ArtalkJS/Artalk/internal/config.Version` and `CommitHash` definitions, please remove them, as they are now obsolete. The `Version` has been hardcoded into the Go code, and the `CommitHash` is now read from the Go build info via runtime/debug’s vcs.revision value. This change only affects the server developers and does not impact the frontend UI client.
2024-09-18 21:43:43 +08:00
qwqcode
dbb3c55148
refactor(transfer): improve the reliability of the transfer ( #883 )
2024-05-25 18:00:27 +08:00
qwqcode
b613a4368c
fix(log): improve log system and fix memory leaks ( #843 )
2024-04-18 18:25:19 +08:00
qwqcode
d97ad5c843
fix(ip_region): unable to output the IP region correctly ( #760 )
2024-02-03 21:43:42 +08:00
qwqcode
4012d3e090
fix(cmd/admin): update user role to admin if already exists
2024-02-03 16:54:13 +08:00
qwqcode
04cf137a74
feat(cmd): support cli flag for creating admin account
2023-12-21 22:35:10 +08:00
Mr.Hope and qwqcode
8918c62ffd
chore: update description and fix typos ( #684 )
...
* chore: update description
* chore: fix typos
* chore: tweaks
* chore: fix case
---------
Co-authored-by: qwqcode <qwqcode@gmail.com >
2023-12-18 21:21:42 +08:00
qwqcode
ac70cd4c9d
fix(cmd): remove app instance creation when mini boot ( #577 )
2023-09-12 16:35:02 +08:00
qwqcode
2bdb806aaf
refactor(conf): better config.NewFromFile with error handle
2023-09-01 17:02:05 +08:00
qwqcode
963d3cf3d9
fix(cmd): fix parse root cmd global flags
2023-09-01 17:02:03 +08:00
qwqcode
2669b0efe8
perf(cmd): support command mini boot mode
2023-09-01 17:02:03 +08:00
qwqcode
1da3f6420e
test(artransfer): add tests for artransfer
2023-09-01 17:02:02 +08:00
qwqcode
fb4aaf7ecb
refactor(cmd): refactor cmd pkg
2023-09-01 17:01:53 +08:00
qwqcode
b88a26dcae
fix(log): add missing log for web server listen func ( #556 )
2023-08-23 10:48:21 +08:00
qwqcode
7efddf713a
style: improve some styles
...
Signed-off-by: qwqcode <qwqcode@gmail.com >
2023-03-10 18:37:39 +08:00
qwqcode
4ca7a1622e
fix: add X-Forwarded-For proxy header read
...
Signed-off-by: qwqcode <qwqcode@gmail.com >
2023-03-09 23:09:54 +08:00
qwqcode
cbd3ffd3a5
feat: add graceful shutdown
...
Signed-off-by: qwqcode <qwqcode@gmail.com >
2023-03-09 20:57:10 +08:00
qwqcode
7de6c27bd8
feat(i18n): add i18n support for sidebar ( #353 )
...
* docs: revise config example template
Signed-off-by: qwqcode <qwqcode@gmail.com >
* feat: add i18n for sidebar
Signed-off-by: qwqcode <qwqcode@gmail.com >
* feat: i18n for backend config in sidebar
Signed-off-by: qwqcode <qwqcode@gmail.com >
* feat(i18n): link FE and BE locale conf
Signed-off-by: qwqcode <qwqcode@gmail.com >
Signed-off-by: qwqcode <qwqcode@gmail.com >
2023-01-21 22:53:34 +08:00
qwqcode
1ca892fc2d
feat(i18n): translations for backend ( #344 )
...
* i18n: add i18n for server pacakge
Signed-off-by: qwqcode <qwqcode@gmail.com >
* i18n: add i18n for cmd pacakge
Signed-off-by: qwqcode <qwqcode@gmail.com >
* feat: add mustache syntax support for i18n.T in backend
Signed-off-by: qwqcode <qwqcode@gmail.com >
* i18n: improve i18n for backend further
Signed-off-by: qwqcode <qwqcode@gmail.com >
* i18n: `zh-CN` translation for backend
Signed-off-by: qwqcode <qwqcode@gmail.com >
Signed-off-by: qwqcode <qwqcode@gmail.com >
2023-01-19 20:17:32 +08:00
pluveto
697ed7282a
refactor: batch removing artalk -go postfix
2023-01-17 05:37:45 +00:00
pluveto
8d4219af87
refactor: renamed from artalk-go to artalk
2023-01-17 05:22:09 +00:00
pluveto
4f046f8d0e
refactor: move from tmp dir to root
2023-01-16 21:34:24 +08:00