-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add an API to list uninstalled themes (#2586)
#### What type of PR is this? /kind feature /milestone 2.0 /area core /kind api-change #### What this PR does / why we need it: 新增 API 用于查询未安装的主题 #### Which issue(s) this PR fixes: Fixes #2554 #### Special notes for your reviewer: how to test it? 1. 安装几个主题 2. 直接解压几个主题到 work dir 的 themes 目录 3. 使用以下 endpoint 查询未安装的主题,期望获得所有未安装主题的 themes.yaml 信息 ``` /apis/api.console.halo.run/v1alpha1/themes?uninstalled=true ``` /cc @halo-dev/sig-halo #### Does this PR introduce a user-facing change? ```release-note 支持扫描主题目录下未安装的主题 ```
- Loading branch information
Showing
4 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters