Skip to content

Commit

Permalink
feat(market): support plugin navigations (#69)
Browse files Browse the repository at this point in the history
Co-authored-by: Shigma <shigma10826@gmail.com>
  • Loading branch information
Seidko and shigma authored Jan 9, 2023
1 parent 4e88334 commit 36e7dde
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/market/client/settings/plugin.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<template>
<template v-if="name">
<div class="navigation" v-if="remote">
<a class="k-button" target="_blank" v-if="remote.links.homepage" :href="remote.links.homepage">插件主页</a>
<a class="k-button" target="_blank" v-if="remote.links.npm" :href="remote.links.npm">最新版:{{ remote.version }}</a>
<a class="k-button" target="_blank" v-if="remote.links.repository" :href="remote.links.repository">存储库</a>
<a class="k-button" target="_blank" v-if="remote.links.bugs" :href="remote.links.bugs">问题反馈</a>
</div>

<!-- reusability -->
<k-comment v-if="local.id && !local.forkable && current.disabled" type="warning">
<p>此插件已在运行且不可重用,启用可能会导致非预期的问题。</p>
</k-comment>

<!-- latest -->
<k-comment v-if="hasUpdate">
<p>当前的插件版本不是最新,<router-link to="/dependencies">点击前往依赖管理</router-link>。</p>
<p>当前的插件版本 ({{ local.version }}) 不是最新,<router-link to="/dependencies">点击前往依赖管理</router-link>。</p>
</k-comment>

<!-- external -->
Expand Down Expand Up @@ -166,6 +173,12 @@ provide('manager.settings.current', computed(() => props.current))
font-size: 1.25rem;
}
}
.navigation {
a.k-button {
margin-right: 1rem;
}
}
}
</style>

0 comments on commit 36e7dde

Please sign in to comment.