halo/ui/console-src/modules/contents/posts/components
Ryan Wang 54e088741e
refactor: logic of publishing post (#5987)
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.16.x

#### What this PR does / why we need it:

重构文章的发布逻辑,以下是主要改动:

1. 如果文章未发布,点击文章设置的发布按钮时,会先保存文章。
2. 在文章列表的操作菜单中添加发布 / 取消发布的选项。
3. 重构文章设置中,发布 / 取消发布按钮的显示条件。
4. 优化文章设置对话框的显示条件,减少不必要的渲染开销和请求。

#### Special notes for your reviewer:

需要测试:

1. 文章正常新建和发布的逻辑。
2. 文章设置未来时间的发布逻辑。
3. 取消定时发布和已发布文章的逻辑。

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 文章管理中的文章发布逻辑。
```
2024-05-27 08:26:58 +00:00
..
__tests__ Move folder console to ui 2024-02-02 22:22:51 +08:00
entity-fields refactor: logic of publishing post (#5987) 2024-05-27 08:26:58 +00:00
PostListItem.vue refactor: logic of publishing post (#5987) 2024-05-27 08:26:58 +00:00
PostSettingModal.vue refactor: logic of publishing post (#5987) 2024-05-27 08:26:58 +00:00
SnapshotContent.vue fix: color style issue of code block in post content snapshot page (#5982) 2024-05-24 05:02:50 +00:00
SnapshotListItem.vue feat: add cleanup feature for post snapshots (#5822) 2024-04-29 08:41:08 +00:00