halo-admin/packages/shared
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
..
src refactor: plugin extension points of console plugin (#738) 2022-11-30 17:15:50 +00:00
.eslintrc.cjs feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
env.d.ts refactor: router and menu generation (#651) 2022-10-19 08:54:13 +00:00
package.json chore: release 2.0.0-rc.2 (#728) 2022-11-28 15:14:18 +00:00
prettier.config.js feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
tsconfig.app.json feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
tsconfig.json feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
tsconfig.vite-config.json feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
tsconfig.vitest.json feat: create admin-shared package (#581) 2022-06-16 10:42:13 +00:00
vite.config.ts refactor: router and menu generation (#651) 2022-10-19 08:54:13 +00:00