3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-11 21:17:19 +00:00

Merge branch 'ZeppelinBot:master' into chore(basic-config)-rename-plugin

This commit is contained in:
zay 2023-06-05 22:04:01 +01:00 committed by GitHub
commit 9578668636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
591 changed files with 25054 additions and 8203 deletions

View file

@ -45,10 +45,10 @@
<MarkdownBlock :content="data.info.usageGuide" class="content" />
</div>
<!-- Command list -->
<div v-if="data.commands.length">
<h3 id="commands" class="text-2xl">Commands</h3>
<div v-for="command in data.commands"
<!-- Message Command list -->
<div v-if="data.messageCommands && data.messageCommands.length">
<h3 id="commands" class="text-2xl">Message commands</h3>
<div v-for="command in (data.messageCommands || [])"
class="command mb-4"
v-bind:ref="getCommandSlug(command)" v-bind:class="{target: targetCommandId === getCommandSlug(command)}">
<h4 class="text-xl font-semibold mb-0">
@ -309,8 +309,9 @@
},
hasUsageInfo() {
if (!this.data) return true;
if (this.data.commands.length) return true;
if (this.data.info.usageGuide) return true;
if (this.data.messageCommands?.length) return true;
if (this.data.slashCommands?.length) return true;
if (this.data.info?.usageGuide) return true;
return false;
},
}),