halo/ui/console-src
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
..
composables refactor: improve method name of api client (#5980) 2024-05-24 04:04:50 +00:00
layouts feat: add remember-me mechanism to enhance user login experience (#5929) 2024-05-24 06:20:50 +00:00
modules feat: enable asynchronous resolving for UI extension points (#6018) 2024-05-30 07:01:15 +00:00
router refactor: layout of reset password page (#5960) 2024-05-23 02:58:50 +00:00
setup Move folder console to ui 2024-02-02 22:22:51 +08:00
stores refactor: improve method name of api client (#5980) 2024-05-24 04:04:50 +00:00
views/system refactor: improve method name of api client (#5980) 2024-05-24 04:04:50 +00:00
App.vue Move folder console to ui 2024-02-02 22:22:51 +08:00
main.ts Move folder console to ui 2024-02-02 22:22:51 +08:00