halo-admin/packages/shared/src
Ryan Wang 8b24cee0f6
refactor: plugin extension points of console plugin (#738)
#### What type of PR is this?

/kind improvement
/milestone 2.0

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

重构 Console 端插件扩展点的定义方式。现在需要如下定义:

```ts
  extensionPoints: {
    "page:functional:create": () => {
      return [
        {
          name: "链接",
          url: "/links",
          path: "/pages/functional/links",
          permissions: ["plugin:links:view"],
        },
      ];
    },
  },
```

#### Special notes for your reviewer:

可以用以下插件进行测试:

- https://github.com/halo-sigs/plugin-links
- https://github.com/halo-sigs/plugin-unsplash

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


```release-note
None
```
2022-11-30 17:15:50 +00:00
..
components feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
core refactor: plugin extension points of console plugin (#738) 2022-11-30 17:15:50 +00:00
states refactor: plugin extension points of console plugin (#738) 2022-11-30 17:15:50 +00:00
types refactor: plugin extension points of console plugin (#738) 2022-11-30 17:15:50 +00:00
index.ts refactor: router and menu generation (#651) 2022-10-19 08:54:13 +00:00