mirror of https://github.com/halo-dev/halo-admin
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
parent
e3fc14abad
commit
c0f82572e3
|
@ -33,7 +33,7 @@
|
||||||
"@formkit/inputs": "^1.0.0-beta.11",
|
"@formkit/inputs": "^1.0.0-beta.11",
|
||||||
"@formkit/themes": "^1.0.0-beta.11",
|
"@formkit/themes": "^1.0.0-beta.11",
|
||||||
"@formkit/vue": "^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/components": "workspace:*",
|
||||||
"@halo-dev/console-shared": "workspace:*",
|
"@halo-dev/console-shared": "workspace:*",
|
||||||
"@halo-dev/richtext-editor": "^0.0.0-alpha.8",
|
"@halo-dev/richtext-editor": "^0.0.0-alpha.8",
|
||||||
|
|
|
@ -13,7 +13,7 @@ importers:
|
||||||
'@formkit/inputs': ^1.0.0-beta.11
|
'@formkit/inputs': ^1.0.0-beta.11
|
||||||
'@formkit/themes': ^1.0.0-beta.11
|
'@formkit/themes': ^1.0.0-beta.11
|
||||||
'@formkit/vue': ^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/components': workspace:*
|
||||||
'@halo-dev/console-shared': workspace:*
|
'@halo-dev/console-shared': workspace:*
|
||||||
'@halo-dev/richtext-editor': ^0.0.0-alpha.8
|
'@halo-dev/richtext-editor': ^0.0.0-alpha.8
|
||||||
|
@ -108,7 +108,7 @@ importers:
|
||||||
'@formkit/inputs': 1.0.0-beta.11
|
'@formkit/inputs': 1.0.0-beta.11
|
||||||
'@formkit/themes': 1.0.0-beta.11_tailwindcss@3.2.1
|
'@formkit/themes': 1.0.0-beta.11_tailwindcss@3.2.1
|
||||||
'@formkit/vue': 1.0.0-beta.11_vjnbgdptsk6bkj7ab5a6mk2cwm
|
'@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/components': link:packages/components
|
||||||
'@halo-dev/console-shared': link:packages/shared
|
'@halo-dev/console-shared': link:packages/shared
|
||||||
'@halo-dev/richtext-editor': 0.0.0-alpha.8_vue@3.2.41
|
'@halo-dev/richtext-editor': 0.0.0-alpha.8_vue@3.2.41
|
||||||
|
@ -1953,8 +1953,8 @@ packages:
|
||||||
- windicss
|
- windicss
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@halo-dev/api-client/0.0.40:
|
/@halo-dev/api-client/0.0.41:
|
||||||
resolution: {integrity: sha512-SsB+PZkoCwp0cGKGQY+x2oDWiZDwHYH9nytN28b+kY+HnWmNIWgMT64ZnHoHxOnk44m9S9byxwkkvlOamby0AQ==}
|
resolution: {integrity: sha512-YpwoIyT+6BjNEfhQqZPSG7dewmC9AE7wxc/uaIRcVZdKr0C4GLmbiBKGOFFnVWIYr42islhMWjqYCGaiJSzkUg==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@halo-dev/richtext-editor/0.0.0-alpha.8_vue@3.2.41:
|
/@halo-dev/richtext-editor/0.0.0-alpha.8_vue@3.2.41:
|
||||||
|
|
|
@ -105,7 +105,7 @@ const handleBuildSearchIndex = () => {
|
||||||
fuse.add({
|
fuse.add({
|
||||||
title: plugin.spec.displayName as string,
|
title: plugin.spec.displayName as string,
|
||||||
icon: {
|
icon: {
|
||||||
src: plugin.spec.logo as string,
|
src: plugin.status?.logo as string,
|
||||||
},
|
},
|
||||||
group: "插件",
|
group: "插件",
|
||||||
route: {
|
route: {
|
||||||
|
|
|
@ -53,7 +53,7 @@ const onUpgradeModalClose = () => {
|
||||||
<template #description>
|
<template #description>
|
||||||
<VAvatar
|
<VAvatar
|
||||||
:alt="plugin?.spec.displayName"
|
:alt="plugin?.spec.displayName"
|
||||||
:src="plugin?.spec.logo"
|
:src="plugin?.status?.logo"
|
||||||
size="md"
|
size="md"
|
||||||
></VAvatar>
|
></VAvatar>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -149,7 +149,7 @@ watch([() => route.name, () => route.params], () => {
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<VAvatar
|
<VAvatar
|
||||||
v-if="plugin"
|
v-if="plugin"
|
||||||
:src="plugin.spec.logo"
|
:src="plugin.status?.logo"
|
||||||
:alt="plugin.spec.displayName"
|
:alt="plugin.spec.displayName"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
Loading…
Reference in New Issue