github-actions[bot]
42da621dfc
chore: release v2.8.1 ( #766 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v2.8.1
2024-02-04 22:21:43 +08:00
qwqcode
2f5dbaa022
chore(i18n): update zh-CN
2024-02-04 22:02:13 +08:00
qwqcode
e181a6d5dd
perf(style/sidebar): improve some detail in sidebar
2024-02-04 21:55:59 +08:00
qwqcode
7873b21fb7
fix(ui/scroll): scroll into view issue when relativeTo parameter is provided
2024-02-04 21:53:02 +08:00
qwqcode
2a219518a4
feat(ui/goto): improved solution of navigating to comment via link hash ( #693 ) ( #765 )
2024-02-04 21:47:06 +08:00
qwqcode
afa7888db0
chore(typo): fix comment typo
2024-02-04 20:26:34 +08:00
qwqcode
f6a589d5b2
refactor(ui/list): refactor the list layout manager
2024-02-04 20:25:21 +08:00
qwqcode
41a09d5996
refactor(ui/comment): loose coupling between Comment and Context
2024-02-04 20:15:28 +08:00
qwqcode
191977c0df
feat(api): add GET /comments/:id endpoint ( #764 )
2024-02-04 20:08:38 +08:00
qwqcode
5a4c06daee
chore(ip_region): skip empty string
2024-02-04 19:48:26 +08:00
qwqcode
c4942ab807
chore(Makefile): add http-client build cmd to update-swagger
2024-02-04 03:24:58 +08:00
qwqcode
6b83a9f632
chore(transfer): remove the url_resolver disabled warning msg
2024-02-04 02:25:33 +08:00
qwqcode
3c88c0c29c
docs: supplement and refine fe-api.md
2024-02-04 02:22:49 +08:00
qwqcode
35aab6bedc
fix(ui/list): unable to reply or delete comments after switching pagination
2024-02-04 01:40:07 +08:00
qwqcode
17033dc111
fix(ui/no_comment): always appears when creating comment
2024-02-03 23:45:48 +08:00
qwqcode
559df60f0d
fix(ui/pv): missing pageTitle field in the PV request
2024-02-03 23:12:12 +08:00
qwqcode
22d4ec1c31
chore(docs): rename IP region in zh-CN
2024-02-03 21:44:37 +08:00
qwqcode
d97ad5c843
fix(ip_region): unable to output the IP region correctly ( #760 )
2024-02-03 21:43:42 +08:00
qwqcode
34a67f647b
chore(docs): update cdn source links
2024-02-03 19:58:38 +08:00
qwqcode
9c3228b8fc
feat(config): add db.prepare_stmt config option ( #760 ) ( #762 )
...
The Prepared Statement database feature is enabled by default. You can disable it in config file or a env variable `ATK_DB_PREPARE__STMT=0`.
2024-02-03 19:19:00 +08:00
qwqcode
4012d3e090
fix(cmd/admin): update user role to admin if already exists
2024-02-03 16:54:13 +08:00
qwqcode
bc1c4d315c
fix(api/comments): counting comments issue in PostgreSQL db ( #760 ) ( #761 )
2024-02-03 15:34:25 +08:00
qwqcode
2a6f0c56a4
chore(docs): fix script cdn links
2024-02-01 21:43:52 +08:00
github-actions[bot]
46e2a15116
chore: release v2.8.0 ( #756 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v2.8.0
2024-02-01 00:19:18 +08:00
qwqcode
c068f5a240
chore(deps): bump golang deps
2024-02-01 00:11:34 +08:00
qwqcode
29bf49958f
perf(ui/pagination): replace the prev/next text on pagination buttons with icons ( #743 )
2024-01-31 23:59:58 +08:00
qwqcode
2fcad539ca
perf(ui/i18n): refine some translation ( #743 )
2024-01-31 23:28:56 +08:00
qwqcode
45b79124c9
chore(ui/deps): bump deps for ui
2024-01-31 20:27:14 +08:00
qwqcode
2b44452234
refactor(ui): optimize init and update lifecycle events
2024-01-31 19:44:40 +08:00
qwqcode
0e0b53fe9e
perf(ui/sidebar): prevent potential token leakage by clearing query in iframe url
...
The previous referrer policy was already set to `strict-origin`, but to further enhance security, this modification was made.
2024-01-30 23:07:37 +08:00
qwqcode
dba5ba5277
fix(ui/no_comment): flickering when clearing list before fetch
2024-01-30 22:24:53 +08:00
qwqcode
942aaf654f
fix(ui/sidebar): incorrectly increasing pv count in sidebar ( #724 )
2024-01-30 20:27:19 +08:00
qwqcode
37e0091502
perf(ui/conf): support for watching partial changes in config with watchConf() ( #755 )
2024-01-30 19:14:09 +08:00
qwqcode
a7c3f1bbda
feat(notify): add notify_pending config option ( #728 ) ( #754 )
2024-01-29 21:22:36 +08:00
qwqcode
a40a070bdb
chore(fix/pin): fix pinned comment sort rule
2024-01-29 14:46:19 +08:00
Frost Ming
082bfc63d1
fix(ui/editor): prevent propagation of click event in editor ( #734 )
...
Signed-off-by: Frost Ming <me@frostming.com >
2024-01-29 14:12:21 +08:00
qwqcode
0de8009e65
feat(ui/admin): add logout button in admin panel ( #488 ) ( #753 )
...
fixes #488
2024-01-29 13:56:02 +08:00
qwqcode
a5e4c81e72
fix(ui/sidebar_layer): sidebar still displays when login is required
2024-01-29 13:34:51 +08:00
qwqcode
c52c26145c
fix(ui/layer): unexpected behavior with multiple items when closing
2024-01-29 00:47:50 +08:00
qwqcode
f5e310a182
chore(ui/ctx): remove token public in context
2024-01-28 22:14:24 +08:00
qwqcode
0828b91602
refactor(ui/comment): rename class Comment to CommentNode
2024-01-28 22:13:20 +08:00
qwqcode
c4f664e412
refactor(ui/ctx): add getComments and getCommentNodes in context ( #752 )
...
* refactor(ui/ctx): add `getComments` and `getCommentNodes` func in context
* fix import
2024-01-28 22:03:15 +08:00
qwqcode
a084c50095
refactor(transfer): normalize transfer payload parameter name
2024-01-28 13:33:03 +08:00
qwqcode
9dacd0954d
fix(cache): unable to change admin list after caching ( #748 ) ( #750 )
2024-01-26 22:27:10 +08:00
qwqcode
50b0a6068c
chore(ci): fix ui test trigger rules
2024-01-26 17:16:18 +08:00
qwqcode
4689492bf5
fix(ui/pagination): auto load list when scroll reaches bottom
2024-01-26 17:09:56 +08:00
qwqcode
6ee9ee9ea4
fix(ui/lite): correct the instance name for compiling ArtalkLite ( #740 )
2024-01-26 11:45:22 +08:00
qwqcode
8e3a743ed8
fix(i18n): sidebar language cannot be changed
...
Also follow 0d35e66
2024-01-26 11:42:39 +08:00
qwqcode
9550a16a0c
chore(fetch): returns empty object when json deserialize failed
2024-01-25 01:07:48 +08:00
qwqcode
a9edac3ce0
refactor(api): update swagger file of API v2
...
BREAKING CHANGE: For Developers: The HTTP API has now been updated to version v2, with a lot of adjustments made, such as changing to Restful API style, request type, request body, response body, etc. data structure, adding error response codes. You can refer to #735 or https://artalk.js.org/http-api Please update all your existing clients to adapt to the new v2 server. The new base path is `/api/v2/`. The UI package's HTTP client has been implemented to auto-generate based on `Swagger.json`, and there have been a lot of adjustments to the `artalk.ctx.getApi()` related code. In addition, the HTTP API no longer enforces checks on the header's `Origin` and `Referer` (to implement strict isolation of different sites) but still maintains the original CORS origin check.
For General Users: Now all administrators have the same level of authority (there is no longer super admin authority), the function of assigning sub-administrators with independent scope authority to individual sites has been removed, which can simplify the HTTP server maintenance and implementation. Upgrading only requires updating the client and server application at the same time, and there are no additional operations.
2024-01-24 21:53:34 +08:00