Skip to content

Commit

Permalink
Merge pull request #2918 from emqx/dev/1.10.0
Browse files Browse the repository at this point in the history
Sync code from refs/heads/dev/1.10.0 to enterprise
  • Loading branch information
Kinplemelon authored Aug 23, 2024
2 parents d8fbd16 + 9cd4319 commit 99f4f14
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/hooks/Plugins/useRenderPluginForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ export default function usePluginRenderForm(): PluginUI {
const uiConfigs = ref<PluginUIConfigs | null>(null)
const i18nConfigs = ref<Record<string, any> | null>(null)
const schema = ref<AvroSchema | null>(null)
const schemaLoading = ref(false)
// Default true to prevent UI display before schema loads
const schemaLoading = ref(true)

const store = useStore()

Expand Down
13 changes: 8 additions & 5 deletions src/views/Plugins/PluginDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@
</el-tab-pane>
<el-tab-pane :label="tl('infoPlugin')" name="readme" :lazy="true">
<el-card class="app-card">
<div class="plugin-info-bd">
<MarkdownContent class="plugin-content" :content="pluginInfo.readme" />
<PluginInfo :plugin-data="pluginInfo" />
</div>
<el-row class="plugin-info-bd" :gutter="20">
<el-col :span="16">
<MarkdownContent class="plugin-content" :content="pluginInfo.readme" />
</el-col>
<el-col :span="8">
<PluginInfo :plugin-data="pluginInfo" />
</el-col>
</el-row>
</el-card>
</el-tab-pane>
</div>
Expand Down Expand Up @@ -124,7 +128,6 @@ getPluginDetail()
</script>

<style lang="scss" scoped>
@import './style/pluginInfo.scss';
.plugin-detail {
.el-tag {
margin-right: 12px;
Expand Down
3 changes: 2 additions & 1 deletion src/views/Plugins/components/PluginInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ const { getPluginAuthorString } = usePluginItem()

<style lang="scss" scoped>
.plugin-info {
padding: 28px 24px;
padding: 20px;
background: linear-gradient(33deg, #1bcba90c 0%, #2369ff0c 46%, #876eff0c 100%);
border-radius: 10px;
}
.plugin-info-hd {
margin-top: 0;
Expand Down
2 changes: 2 additions & 0 deletions src/views/Plugins/components/PluginInfoItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ defineProps({
}
.content {
color: var(--color-title-primary);
word-break: break-all;
white-space: pre-wrap;
}
}
</style>
12 changes: 0 additions & 12 deletions src/views/Plugins/style/pluginInfo.scss

This file was deleted.

0 comments on commit 99f4f14

Please sign in to comment.