From b7fbcaab4be6ba1486905b7acf5e602b3bde2f2e Mon Sep 17 00:00:00 2001 From: Freeze455 Date: Fri, 3 Sep 2021 17:29:22 +0200 Subject: [PATCH] :sparkles: Implement slash command --- src/templates/modules/documentation/Routes.ts | 2 + .../documentation/base/SlashCommand.vue | 81 +++++++++++++++++++ src/utils/Navigation.ts | 1 + 3 files changed, 84 insertions(+) create mode 100644 src/templates/modules/documentation/base/SlashCommand.vue diff --git a/src/templates/modules/documentation/Routes.ts b/src/templates/modules/documentation/Routes.ts index fa37570..8ba4095 100644 --- a/src/templates/modules/documentation/Routes.ts +++ b/src/templates/modules/documentation/Routes.ts @@ -4,6 +4,7 @@ import Starting from './base/Starting.vue' import Environment from './base/Environment.vue' import Structure from './base/Structure.vue' import Command from './base/Command.vue' +import SlashCommand from './base/SlashCommand.vue' import Event from './base/Event.vue' import Middleware from './base/Middleware.vue' import Hook from './base/Hook.vue' @@ -15,6 +16,7 @@ const routes: RouteRecordRaw[] = [ { path: '/documentation/environment', component: Environment }, { path: '/documentation/structure', component: Structure }, { path: '/documentation/commands', component: Command }, + { path: '/documentation/slash-commands', component: SlashCommand }, { path: '/documentation/events', component: Event }, { path: '/documentation/middlewares', component: Middleware }, { path: '/documentation/hooks', component: Hook }, diff --git a/src/templates/modules/documentation/base/SlashCommand.vue b/src/templates/modules/documentation/base/SlashCommand.vue new file mode 100644 index 0000000..f6de070 --- /dev/null +++ b/src/templates/modules/documentation/base/SlashCommand.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/utils/Navigation.ts b/src/utils/Navigation.ts index c4952db..ca72c4e 100644 --- a/src/utils/Navigation.ts +++ b/src/utils/Navigation.ts @@ -23,6 +23,7 @@ export const documentation = [ { label: 'Environment', href: '/documentation/environment', isMenu: false }, { label: 'Structure', href: '/documentation/structure', isMenu: false }, { label: 'Commands', href: '/documentation/commands', isMenu: false }, + { label: 'Slash Commands', href: '/documentation/slash-commands', isMenu: false }, { label: 'Events', href: '/documentation/events', isMenu: false }, { label: 'Middlewares', href: '/documentation/middlewares', isMenu: false }, { label: 'Hooks', href: '/documentation/hooks', isMenu: false },