generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add plugin and theme binding check field (#23)
在插件列表添加绑定检测的显示,此功能是为了方便使用者查看哪些已安装的插件和主题还没有和应用市场绑定。 <img width="762" alt="image" src="https://github.com/halo-dev/plugin-app-store/assets/21301288/be5b9c0f-8cb1-41b8-b0d6-4349d250f4d0"> Fixes #22 /kind improvement ```release-note 支持在已安装的插件和主题列表显示未绑定应用市场的提示。 ```
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
console/src/components/entity-fields/PluginBindingCheckField.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts" setup> | ||
import type { Plugin } from "@halo-dev/api-client"; | ||
import { VEntityField, VStatusDot } from "@halo-dev/components"; | ||
withDefaults( | ||
defineProps<{ | ||
plugin: Plugin; | ||
}>(), | ||
{} | ||
); | ||
</script> | ||
|
||
<template> | ||
<VEntityField> | ||
<template #description> | ||
<VStatusDot v-tooltip="`未绑定应用市场,在应用市场覆盖安装之后即可检测新版本`" state="default" /> | ||
</template> | ||
</VEntityField> | ||
</template> |
15 changes: 15 additions & 0 deletions
15
console/src/components/operation-items/ThemeBindingCheckOperationItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts" setup> | ||
import type { Theme } from "@halo-dev/api-client"; | ||
import { VStatusDot } from "@halo-dev/components"; | ||
withDefaults( | ||
defineProps<{ | ||
theme: Theme; | ||
}>(), | ||
{} | ||
); | ||
</script> | ||
|
||
<template> | ||
<VStatusDot v-tooltip="`未绑定应用市场,在应用市场覆盖安装之后即可检测新版本`" state="default" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters