26 Commits
Author SHA1 Message Date
qwqcode e816dd686c fix(api/img-upload): public_path config enables the use of full url (#659) (#664) 2023-12-17 01:29:59 +08:00
qwqcode ec0ef12b0e refactor(anti_spam): refactor anti_spam pkg and add unit test (#589)
* refactor(anti_spam): refactor anti_spam pkg and add unit test

* add more test
2023-09-21 21:48:56 +08:00
qwqcode 6c35fe9ded fix(captcha): image captcha base64 response issue (#575) 2023-09-11 15:17:11 +08:00
qwqcode 2bdb806aaf refactor(conf): better config.NewFromFile with error handle 2023-09-01 17:02:05 +08:00
qwqcode dc333e5a9a refactor(core): better AppService func with error handle 2023-09-01 17:02:04 +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 388b5b8b24 refactor(cache): refactor cache pkg 2023-09-01 17:02:00 +08:00
qwqcode 3af4482db6 refactor(cache): refactor cache pkg 2023-09-01 17:01:59 +08:00
qwqcode d1b730113b refactor(cors): refactor cors middleware 2023-09-01 17:01:57 +08:00
qwqcode 9f81879713 refactor(server/handler): refactor server/handler pkg 2023-09-01 17:01:57 +08:00
qwqcode b034e514a7 refactor(cache): remove cached fields in struct to save memory (#555) 2023-08-23 18:06:03 +08:00
qwqcode c20faed4e3 fix(api): comment IP data loss after editing (#504)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-05-07 18:55:15 +08:00
qwqcode ac4b8b0b80 fix(api/comment_add): SIGSEGV crash in comment_add (#478) (#481)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-04-06 20:46:27 +08:00
qwqcode 848969edbc perf(notify): shorten the length of notify key (#466)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-19 19:43:20 +08:00
qwqcode b54ed8115a refactor(captcha): abstract captcha service (#455)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-10 10:39:05 +08:00
qwqcode 481a2ffe2d fix(comment_add): ip region search in comment add api
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-09 23:29:26 +08:00
qwqcode c8f9a08bfc feat(captcha): support turnstile captcha by cloudflare (#453)
* feat(captcha): support turnstile captcha by cloudflare

Signed-off-by: qwqcode <qwqcode@gmail.com>

* docs: add turnstile captcha

Signed-off-by: qwqcode <qwqcode@gmail.com>

---------

Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-09 17:17:54 +08:00
qwqcode 4679125bb7 chore(ip_region): move config dep out of ip_region pkg
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-08 11:20:46 +08:00
qwqcode fccebf853e feat: display IP region of comment (#418) (#447)
* ip_region backend api

Signed-off-by: qwqcode <qwqcode@gmail.com>

* frontend ui support

Signed-off-by: qwqcode <qwqcode@gmail.com>

* fix backend

Signed-off-by: qwqcode <qwqcode@gmail.com>

* handle mutiple ip case

Signed-off-by: qwqcode <qwqcode@gmail.com>

* add docs

Signed-off-by: qwqcode <qwqcode@gmail.com>

---------

Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-03-06 21:54:03 +08:00
qwqcode 77223c9fd7 refactor(ui/list): modify list pagination to standalone module (#437)
Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-02-28 19:25:51 +08:00
qwqcode 9a680f0ef8 docs: add open api (#360)
* chore(api): add comment for open api

Signed-off-by: qwqcode <qwqcode@gmail.com>

* docs: add open api generation support

Signed-off-by: qwqcode <qwqcode@gmail.com>

---------

Signed-off-by: qwqcode <qwqcode@gmail.com>
2023-01-29 00:13:19 +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 4f046f8d0e refactor: move from tmp dir to root 2023-01-16 21:34:24 +08:00