feat: add 'exclusive' option for role buttons; add documentation for role buttons; mark reaction roles as legacy
This commit is contained in:
parent
05334a772f
commit
784c54b22a
8 changed files with 144 additions and 20 deletions
|
@ -8,6 +8,20 @@
|
|||
<!-- Description -->
|
||||
<MarkdownBlock :content="data.info.description" class="content"></MarkdownBlock>
|
||||
|
||||
<div v-if="data.info.legacy">
|
||||
<div class="px-3 py-2 mb-4 rounded bg-gray-800 shadow-md inline-block flex">
|
||||
<div class="flex-none mr-2">
|
||||
<alert class="inline-icon mr-1 text-yellow-300" />
|
||||
</div>
|
||||
<div class="flex-auto">
|
||||
<strong>Note!</strong> This is a legacy plugin which is no longer actively maintained and may be removed in a future update.
|
||||
<div v-if="typeof data.info.legacy === 'string'" class="mt-4">
|
||||
<MarkdownBlock v-if="typeof data.info.legacy === 'string'" :content="data.info.legacy"></MarkdownBlock>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Tabs>
|
||||
<Tab :active="tab === 'usage'">
|
||||
<router-link class="unstyled" v-bind:to="'/docs/plugins/' + pluginName + '/usage'">Usage</router-link>
|
||||
|
@ -172,12 +186,13 @@
|
|||
import Tab from "../Tab.vue";
|
||||
import Expandable from "../Expandable.vue";
|
||||
import { DocsState } from "../../store/types";
|
||||
import Alert from 'vue-material-design-icons/Alert.vue';
|
||||
|
||||
const validTabs = ['usage', 'configuration'];
|
||||
const defaultTab = 'usage';
|
||||
|
||||
export default {
|
||||
components: { CodeBlock, MarkdownBlock, Tabs, Tab, Expandable },
|
||||
components: { CodeBlock, MarkdownBlock, Tabs, Tab, Expandable, Alert },
|
||||
|
||||
async mounted() {
|
||||
this.loading = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue