Skip to content

Commit

Permalink
feat: add link to button
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jul 8, 2023
1 parent c60669d commit ce22dc8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/views/PluginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,30 @@ function pickTextColor(bgColor: string): string {
<n-tab-pane name="overview" tab="总览">
<div class="flex flex-col-reverse xl:flex-row justify-between">
<div class="xl:max-w-[60vw]">
<n-p v-if="result.inputs.config">
<n-p>
<n-h3
>配置项
<n-tooltip placement="right-end" trigger="hover">
<template #trigger>
<n-button text
<n-button
text
tag="a"
:href="
encodeURI(
`https://github.com/nonebot/registry/issues/new?template=plugin_config_edit.yml&title=plugin: 修改插件 ${
plugin.name
} 的配置项&pypi=${pypi}&module=${module}&config=${result.inputs.config.trim()}`,
)
"
target="_blank"
><n-icon><SquareEditOutline /></n-icon
></n-button>
</template>
<span> 修改配置项 </span>
</n-tooltip>
</n-h3>
<pre class="overflow-auto font-mono">{{
result.inputs.config.trim()
result.inputs.config.trim() || ""
}}</pre>
</n-p>
<n-p>
Expand Down

0 comments on commit ce22dc8

Please sign in to comment.