From 161a5f7de2eb51b8fea74119b4b8d1126f12ff06 Mon Sep 17 00:00:00 2001 From: Jonfirexbox <66625200+Kyro3400@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:18:50 -0400 Subject: [PATCH] chore: Added Discord Component Have now fully added it in, and will be working on adding it for the rest Note: Working on making the commands look like the actual commands and adding the DBH bot's responses --- LICENSE | 2 +- package-lock.json | 46 +- package.json | 2 +- pages/_app.tsx | 2 +- pages/_document.tsx | 2 + pages/discord.mdx | 886 ++ pages/server/development/nodejs.mdx | 14 +- pages/server/development/rdb.mdx | 4 +- public/discord-components.config.js | 23 + yarn.lock | 12046 +++++++++----------------- 10 files changed, 5145 insertions(+), 7882 deletions(-) create mode 100644 pages/discord.mdx create mode 100644 public/discord-components.config.js diff --git a/LICENSE b/LICENSE index ed50dd4..88e2a86 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Danbot Space +Copyright (c) 2023 DanBot Hosting Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package-lock.json b/package-lock.json index 97010cc..95ca1b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@mdx-js/loader": "^2.3.0", "@mdx-js/react": "^2.3.0", "@next/mdx": "^13.2.4", - "@skyra/discord-components-react": "^4.0.0-alpha.23", + "@skyra/discord-components-react": "^4.0.0-alpha.26", "@tabler/icons": "1.107.0", "@types/carbon__icons-react": "^11.16.0", "cookies-next": "^2.1.1", @@ -539,9 +539,9 @@ } }, "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.1.tgz", + "integrity": "sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==" }, "node_modules/@lit/context": { "version": "1.1.2", @@ -1484,9 +1484,9 @@ } }, "node_modules/@skyra/discord-components-core": { - "version": "4.0.0-alpha.24", - "resolved": "https://registry.npmjs.org/@skyra/discord-components-core/-/discord-components-core-4.0.0-alpha.24.tgz", - "integrity": "sha512-V2m3xSIG37KS/tKfNo6rZ+W9M4NfjVAhdP5M2YQgOPcoJjdhdT3ZXdZiuaf0/IqM4jZuluuaVpQyth5jrfYWjw==", + "version": "4.0.0-alpha.26", + "resolved": "https://registry.npmjs.org/@skyra/discord-components-core/-/discord-components-core-4.0.0-alpha.26.tgz", + "integrity": "sha512-4Jhwq/vQy7a386EAKZEbdIfMJWvQe3I7oK1sB1BKi7T9P1K+IlxRmBBnJ0KAzAj8hjtXp6MoZA5gkvn+S+u3zw==", "dependencies": { "@lit/context": "^1.1.2", "@open-wc/lit-helpers": "^0.7.0", @@ -1497,12 +1497,12 @@ } }, "node_modules/@skyra/discord-components-react": { - "version": "4.0.0-alpha.24", - "resolved": "https://registry.npmjs.org/@skyra/discord-components-react/-/discord-components-react-4.0.0-alpha.24.tgz", - "integrity": "sha512-hF9a5NoLHmGWmKqsxafXzwM8CalPAcFjnKFL3rTTWS48kH5YAYTqdcFkZdkjBGsg5Cq7DMtdn9/GgmjFv9TFXA==", + "version": "4.0.0-alpha.26", + "resolved": "https://registry.npmjs.org/@skyra/discord-components-react/-/discord-components-react-4.0.0-alpha.26.tgz", + "integrity": "sha512-2po2jySYKSUKLPRd0oNyBFfyHLihXf4stvm9VtUbMB6Nt6CBXZUinnsd+SB+LCAgjY4I3KCi6YC1MlJxtIeuNg==", "dependencies": { "@lit/react": "^1.0.5", - "@skyra/discord-components-core": "^4.0.0-alpha.24", + "@skyra/discord-components-core": "^4.0.0-alpha.26", "react": "^18.3.1" }, "engines": { @@ -4019,29 +4019,29 @@ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, "node_modules/lit": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/lit/-/lit-3.1.4.tgz", - "integrity": "sha512-q6qKnKXHy2g1kjBaNfcoLlgbI3+aSOZ9Q4tiGa9bGYXq5RBXxkVTqTIVmP2VWMp29L4GyvCFm8ZQ2o56eUAMyA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lit/-/lit-3.2.0.tgz", + "integrity": "sha512-s6tI33Lf6VpDu7u4YqsSX78D28bYQulM+VAzsGch4fx2H0eLZnJsUBsPWmGYSGoKDNbjtRv02rio1o+UdPVwvw==", "dependencies": { "@lit/reactive-element": "^2.0.4", - "lit-element": "^4.0.4", - "lit-html": "^3.1.2" + "lit-element": "^4.1.0", + "lit-html": "^3.2.0" } }, "node_modules/lit-element": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.0.6.tgz", - "integrity": "sha512-U4sdJ3CSQip7sLGZ/uJskO5hGiqtlpxndsLr6mt3IQIjheg93UKYeGQjWMRql1s/cXNOaRrCzC2FQwjIwSUqkg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lit-element/-/lit-element-4.1.0.tgz", + "integrity": "sha512-gSejRUQJuMQjV2Z59KAS/D4iElUhwKpIyJvZ9w+DIagIQjfJnhR20h2Q5ddpzXGS+fF0tMZ/xEYGMnKmaI/iww==", "dependencies": { "@lit-labs/ssr-dom-shim": "^1.2.0", "@lit/reactive-element": "^2.0.4", - "lit-html": "^3.1.2" + "lit-html": "^3.2.0" } }, "node_modules/lit-html": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.1.4.tgz", - "integrity": "sha512-yKKO2uVv7zYFHlWMfZmqc+4hkmSbFp8jgjdZY9vvR9jr4J8fH6FUMXhr+ljfELgmjpvlF7Z1SJ5n5/Jeqtc9YA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-3.2.0.tgz", + "integrity": "sha512-pwT/HwoxqI9FggTrYVarkBKFN9MlTUpLrDHubTmW4SrkL3kkqW5gxwbxMMUnbbRHBC0WTZnYHcjDSCM559VyfA==", "dependencies": { "@types/trusted-types": "^2.0.2" } diff --git a/package.json b/package.json index 81ba4f1..02aae05 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@mdx-js/loader": "^2.3.0", "@mdx-js/react": "^2.3.0", "@next/mdx": "^13.2.4", - "@skyra/discord-components-react": "^4.0.0-alpha.23", + "@skyra/discord-components-react": "^4.0.0-alpha.26", "@tabler/icons": "1.107.0", "@types/carbon__icons-react": "^11.16.0", "cookies-next": "^2.1.1", diff --git a/pages/_app.tsx b/pages/_app.tsx index 76c35f1..112d643 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,7 +1,7 @@ import { PanelProvider } from "@component/layout"; import type { NextPage } from "next"; -import App, { AppContext, AppInitialProps } from "next/app"; +import App, { AppContext, AppInitialProps, AppProps } from "next/app"; import { ReactElement } from "react"; import { ColorScheme } from "@mantine/core"; import { getCookie } from "cookies-next"; diff --git a/pages/_document.tsx b/pages/_document.tsx index 47e0845..4dee73f 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -2,6 +2,7 @@ import Document, { Html, Head, Main, NextScript } from "next/document"; import { createGetInitialProps } from "@mantine/next"; import type { ReactElement } from "react"; +import Script from "next/script"; const getInitialProps = createGetInitialProps(); @@ -41,6 +42,7 @@ export default class _Document extends Document {