3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

feat: add 'exclusive' option for role buttons; add documentation for role buttons; mark reaction roles as legacy

This commit is contained in:
Dragory 2022-04-23 17:30:37 +03:00
parent 05334a772f
commit 784c54b22a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
8 changed files with 144 additions and 20 deletions

View file

@ -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;