Ryan Wang
2c9d94f034
Refine UI for device managment
2024-06-26 18:53:24 +08:00
Ryan Wang
a93479dc34
chore: organize and fix imports ( #6152 )
...
#### What type of PR is this?
/area ui
/kind improvement
/milestone 2.17.x
#### What this PR does / why we need it:
重新组织和固定 UI 部分代码的 imports 导入,防止后续因为 imports 的顺序造成不必要的 diff。
基于:https://github.com/halo-dev/halo/pull/6151
#### Does this PR introduce a user-facing change?
```release-note
None
```
2024-06-26 10:42:50 +00:00
Ryan Wang
c74187c066
feat: add requests library as a global shared dependency
2024-06-25 12:31:44 +08:00
Ryan Wang
4c6abdcaa1
feat: enable asynchronous resolving for UI extension points ( #6018 )
...
#### What type of PR is this?
/area ui
/kind feature
/milestone 2.16.x
#### What this PR does / why we need it:
优化 UI 部分的扩展点获取实现,让部分扩展点支持异步获取,之前的实现与文档不符。
比如:
```ts
import { definePlugin } from "@halo-dev/console-shared";
import axios from "axios";
export default definePlugin({
components: {},
routes: [],
extensionPoints: {
"attachment:selector:create": async () => {
const { data } = await axios.get(
"/apis/v1alpha1/fake.halo.run/attachments/selectors"
);
return data;
},
},
});
```
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/6008
#### Does this PR introduce a user-facing change?
```release-note
优化 UI 部分的扩展点获取实现,让部分扩展点支持异步获取。
```
2024-05-30 07:01:15 +00:00
Ryan Wang
4d289c0a45
refactor: improve code base of user-related ( #5975 )
...
#### What type of PR is this?
/area ui
/kind improvement
/milestone 2.16.x
#### What this PR does / why we need it:
优化和用户管理相关的所有对话框显示逻辑,减少不必要的渲染开销和请求。
#### Special notes for your reviewer:
改动范围如下:
1. 用户密码修改
2. 用户资料修改
3. 用户创建
4. 重新登录
#### Does this PR introduce a user-facing change?
```release-note
优化和用户管理相关的所有对话框显示逻辑,减少不必要的渲染开销和请求。
```
2024-05-23 06:32:49 +00:00
Ryan Wang
fbf2b06432
feat: add extension points for user detail tab ( #5763 )
...
#### What type of PR is this?
/area ui
/kind feature
/milestone 2.15.x
#### What this PR does / why we need it:
为 Console 的用户详情页面的选项卡和个人中心的个人资料页面选项卡添加扩展点,支持通过插件扩展选项卡。
todo:
- [x] 完善 docs.halo.run 的开发文档 https://github.com/halo-dev/docs/pull/340
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/5745
#### Special notes for your reviewer:
可以使用 [plugin-starter-1.3.2-SNAPSHOT.jar.zip](https://github.com/halo-dev/halo/files/15059291/plugin-starter-1.3.2-SNAPSHOT.jar.zip ) 进行测试。
#### Does this PR introduce a user-facing change?
```release-note
为 Console 的用户详情页面的选项卡和个人中心的个人资料页面选项卡添加扩展点
```
2024-04-25 00:33:09 +00:00
John Niang
15f7fe2d4f
Move folder console to ui
2024-02-02 22:22:51 +08:00