🚧 Work in progress

This commit is contained in:
Freeze455
2021-10-06 18:04:20 +02:00
parent bc7a685e74
commit 3f12e47d8f
2 changed files with 44 additions and 8 deletions

View File

@@ -4,14 +4,18 @@ import Starting from './base/Starting.vue'
import Environment from './base/Environment.vue' import Environment from './base/Environment.vue'
import Structure from './base/Structure.vue' import Structure from './base/Structure.vue'
import Command from './base/Command.vue' import Command from './base/Command.vue'
import SlashCommand from './base/SlashCommand.vue' import ContextMenu from './base/ContextMenu.vue'
import Event from './base/Event.vue' import Event from './base/Event.vue'
import Middleware from './base/Middleware.vue'
import Hook from './base/Hook.vue' import Hook from './base/Hook.vue'
import Deployment from './advanced/Deployment.vue' import Deployment from './advanced/Deployment.vue'
import CreateAddon from './advanced/CreateAddon.vue'
import PartialHooks from './base/PartialHooks.vue' import PartialHooks from './base/PartialHooks.vue'
import PingPong from './examples/PingPong.vue' import PingPong from './examples/PingPong.vue'
import ExampleButtons from './examples/Buttons.vue' import ExampleButtons from './examples/Buttons.vue'
import PresenceProvider from './examples/PresenceProvider.vue'
import MessageCommands from './modules/MessageCommands.vue'
import Colorize from './modules/Colorize.vue' import Colorize from './modules/Colorize.vue'
import Storage from './modules/Storage.vue' import Storage from './modules/Storage.vue'
@@ -22,16 +26,18 @@ const routes: RouteRecordRaw[] = [
{ path: '/documentation/structure', component: Structure }, { path: '/documentation/structure', component: Structure },
{ path: '/documentation/partial-hooks', component: PartialHooks }, { path: '/documentation/partial-hooks', component: PartialHooks },
{ path: '/documentation/commands', component: Command }, { path: '/documentation/commands', component: Command },
{ path: '/documentation/slash-commands', component: SlashCommand }, { path: '/documentation/context-menu', component: ContextMenu },
{ path: '/documentation/events', component: Event }, { path: '/documentation/events', component: Event },
{ path: '/documentation/middlewares', component: Middleware },
{ path: '/documentation/hooks', component: Hook }, { path: '/documentation/hooks', component: Hook },
{ path: '/documentation/deployment', component: Deployment }, { path: '/documentation/deployment', component: Deployment },
{ path: '/documentation/create-your-addon', component: CreateAddon },
{ path: '/documentation/modules/message-command', component: MessageCommands },
{ path: '/documentation/modules/colorize', component: Colorize }, { path: '/documentation/modules/colorize', component: Colorize },
{ path: '/documentation/modules/database-storage', component: Storage }, { path: '/documentation/modules/database-storage', component: Storage },
{ path: '/documentation/examples/presence-with-provider', component: PresenceProvider },
{ path: '/documentation/examples/ping-pong', component: PingPong }, { path: '/documentation/examples/ping-pong', component: PingPong },
{ path: '/documentation/examples/buttons', component: ExampleButtons }, { path: '/documentation/examples/buttons', component: ExampleButtons },
] ]

View File

@@ -1,6 +1,5 @@
import { NavbarLink } from '../types' import { NavbarLink } from '../types'
import { github, twitter } from './Icons' import { github, twitter } from './Icons'
import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, UsersIcon } from '@heroicons/vue/outline'
export const links: NavbarLink[] = [ export const links: NavbarLink[] = [
{ label: 'Home', path: '/', local: true }, { label: 'Home', path: '/', local: true },
@@ -24,9 +23,8 @@ export const documentation = [
{ label: 'Structure', href: '/documentation/structure', isMenu: false }, { label: 'Structure', href: '/documentation/structure', isMenu: false },
{ label: 'Partial Hooks', href: '/documentation/partial-hooks', isMenu: false }, { label: 'Partial Hooks', href: '/documentation/partial-hooks', isMenu: false },
{ label: 'Commands', href: '/documentation/commands', isMenu: false }, { label: 'Commands', href: '/documentation/commands', isMenu: false },
{ label: 'Slash Commands', href: '/documentation/slash-commands', isMenu: false }, { label: 'Context Menu', href: '/documentation/context-menu', isMenu: false },
{ label: 'Events', href: '/documentation/events', isMenu: false }, { label: 'Events', href: '/documentation/events', isMenu: false },
{ label: 'Middlewares', href: '/documentation/middlewares', isMenu: false },
{ label: 'Hooks', href: '/documentation/hooks', isMenu: false }, { label: 'Hooks', href: '/documentation/hooks', isMenu: false },
] ]
}, },
@@ -35,22 +33,54 @@ export const documentation = [
isMenu: true, isMenu: true,
child: [ child: [
{ label: 'Deployment', href: '/documentation/deployment', isMenu: false }, { label: 'Deployment', href: '/documentation/deployment', isMenu: false },
{ label: 'Addon', href: '/documentation/create-your-addon', isMenu: false },
] ]
}, },
{ {
label: 'Modules', label: 'Modules',
isMenu: true, isMenu: true,
child: [ child: [
{ label: 'Message command', href: '/documentation/modules/message-command', isMenu: false },
{ label: 'Colorize', href: '/documentation/modules/colorize', isMenu: false }, { label: 'Colorize', href: '/documentation/modules/colorize', isMenu: false },
{ label: 'Database storage', href: '/documentation/modules/database-storage', isMenu: false }, { label: 'Storage next', href: '/documentation/modules/database-storage', isMenu: false },
] ]
}, },
{ {
label: 'Example', label: 'Example',
isMenu: true, isMenu: true,
child: [ child: [
{ label: 'Presence with provider', href: '/documentation/examples/presence-with-provider', isMenu: false },
{ label: 'Ping pong', href: '/documentation/examples/ping-pong', isMenu: false }, { label: 'Ping pong', href: '/documentation/examples/ping-pong', isMenu: false },
{ label: 'Buttons', href: '/documentation/examples/buttons', isMenu: false }, { label: 'Buttons', href: '/documentation/examples/buttons', isMenu: false },
] ]
}, },
] ]
export enum markdownEndpoint {
GETTING_STARTED = 'https://raw.githubusercontent.com/DiscordFactory/.github/main/profile/README.md',
STARTING = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Starting.md',
COMMAND = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Command.md',
CONTEXT_MENU = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/ContextMenu.md',
APPLICATION_HOOK = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Application.md',
EVENT = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Event.md',
STRUCTURE = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Structure.md',
ENVIRONMENT = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Environment.md',
HOOK = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Hook.md',
PRESENCE_PROVIDER = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/exemples/PresenceProvider.md',
PING_PONG = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/exemples/PingPong.md',
BUTTONS = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/exemples/Buttons.md',
MESSAGE_COMMAND = 'https://raw.githubusercontent.com/DiscordFactory/message-commands/master/README.md',
STORAGE = 'https://raw.githubusercontent.com/DiscordFactory/storage-next/master/README.md',
COLORIZE = 'https://raw.githubusercontent.com/DiscordFactory/colorize/master/README.md',
DEPLOYMENT = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/Deployment.md',
PARTIAL_COMMAND = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/partials/Command.md',
PARTIAL_EVENT = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/partials/Event.md',
PARTIAL_CONTEXT_MENU = 'https://raw.githubusercontent.com/DiscordFactory/core/master/doc/partials/ContextMenu.md',
PARTIAL_MODEL = 'https://raw.githubusercontent.com/DiscordFactory/storage-next/master/doc/partials/Model.md',
test = 'https://raw.githubusercontent.com/DiscordFactory/.github/main/README.md',
}