refactor: update the field of the plugin logo (#678)

#### What type of PR is this?

/kind improvement
/milestone 2.0

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

修改插件 Logo 的使用字段为 `status.logo`。用于适配 https://github.com/halo-dev/halo/pull/2652

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2651

#### Screenshots:

<img width="1663" alt="image" src="https://user-images.githubusercontent.com/21301288/199447142-0c90b200-3976-498e-88e1-dd3c5377ab73.png">

#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-console 

测试方式:

1. Halo 需要切换到 https://github.com/halo-dev/halo/pull/2652 分支。
2. 检查插件列表的 Logo 是否显示正常。

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

```release-note
None
```
pull/670/head
Ryan Wang 2022-11-03 10:50:17 +08:00 committed by GitHub
parent e3fc14abad
commit c0f82572e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View File

@ -33,7 +33,7 @@
"@formkit/inputs": "^1.0.0-beta.11",
"@formkit/themes": "^1.0.0-beta.11",
"@formkit/vue": "^1.0.0-beta.11",
"@halo-dev/api-client": "^0.0.40",
"@halo-dev/api-client": "^0.0.41",
"@halo-dev/components": "workspace:*",
"@halo-dev/console-shared": "workspace:*",
"@halo-dev/richtext-editor": "^0.0.0-alpha.8",

View File

@ -13,7 +13,7 @@ importers:
'@formkit/inputs': ^1.0.0-beta.11
'@formkit/themes': ^1.0.0-beta.11
'@formkit/vue': ^1.0.0-beta.11
'@halo-dev/api-client': ^0.0.40
'@halo-dev/api-client': ^0.0.41
'@halo-dev/components': workspace:*
'@halo-dev/console-shared': workspace:*
'@halo-dev/richtext-editor': ^0.0.0-alpha.8
@ -108,7 +108,7 @@ importers:
'@formkit/inputs': 1.0.0-beta.11
'@formkit/themes': 1.0.0-beta.11_tailwindcss@3.2.1
'@formkit/vue': 1.0.0-beta.11_vjnbgdptsk6bkj7ab5a6mk2cwm
'@halo-dev/api-client': 0.0.40
'@halo-dev/api-client': 0.0.41
'@halo-dev/components': link:packages/components
'@halo-dev/console-shared': link:packages/shared
'@halo-dev/richtext-editor': 0.0.0-alpha.8_vue@3.2.41
@ -1953,8 +1953,8 @@ packages:
- windicss
dev: false
/@halo-dev/api-client/0.0.40:
resolution: {integrity: sha512-SsB+PZkoCwp0cGKGQY+x2oDWiZDwHYH9nytN28b+kY+HnWmNIWgMT64ZnHoHxOnk44m9S9byxwkkvlOamby0AQ==}
/@halo-dev/api-client/0.0.41:
resolution: {integrity: sha512-YpwoIyT+6BjNEfhQqZPSG7dewmC9AE7wxc/uaIRcVZdKr0C4GLmbiBKGOFFnVWIYr42islhMWjqYCGaiJSzkUg==}
dev: false
/@halo-dev/richtext-editor/0.0.0-alpha.8_vue@3.2.41:

View File

@ -105,7 +105,7 @@ const handleBuildSearchIndex = () => {
fuse.add({
title: plugin.spec.displayName as string,
icon: {
src: plugin.spec.logo as string,
src: plugin.status?.logo as string,
},
group: "插件",
route: {

View File

@ -53,7 +53,7 @@ const onUpgradeModalClose = () => {
<template #description>
<VAvatar
:alt="plugin?.spec.displayName"
:src="plugin?.spec.logo"
:src="plugin?.status?.logo"
size="md"
></VAvatar>
</template>

View File

@ -149,7 +149,7 @@ watch([() => route.name, () => route.params], () => {
<template #icon>
<VAvatar
v-if="plugin"
:src="plugin.spec.logo"
:src="plugin.status?.logo"
:alt="plugin.spec.displayName"
class="mr-2"
size="sm"