From 410613726b7f2da85d653bbf0e9cb662f1abd32e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 17 Nov 2022 00:21:13 +0100 Subject: Donor Badges && Add donate info to settings --- src/components/DonateButton.tsx | 37 +++++++++++++++++++++++++++++++++++++ src/components/Heart.tsx | 35 +++++++++++++++++++++++++++++++++++ src/components/Settings.tsx | 28 +++++++++++++++++++++++++--- 3 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 src/components/DonateButton.tsx create mode 100644 src/components/Heart.tsx (limited to 'src/components') diff --git a/src/components/DonateButton.tsx b/src/components/DonateButton.tsx new file mode 100644 index 0000000..6aae8ad --- /dev/null +++ b/src/components/DonateButton.tsx @@ -0,0 +1,37 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +import IpcEvents from "../utils/IpcEvents"; +import { Button } from "../webpack/common"; +import { Heart } from "./Heart"; + +export default function DonateButton(props: any) { + return ( + + ); +} diff --git a/src/components/Heart.tsx b/src/components/Heart.tsx new file mode 100644 index 0000000..b33b836 --- /dev/null +++ b/src/components/Heart.tsx @@ -0,0 +1,35 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +export function Heart() { + return ( + + ); +} diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 363b1df..fc25901 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -20,7 +20,8 @@ import { useSettings } from "../api/settings"; import { ChangeList } from "../utils/ChangeList"; import IpcEvents from "../utils/IpcEvents"; import { useAwaiter } from "../utils/misc"; -import { Alerts, Button, Forms, Margins, Parser, React, Switch } from "../webpack/common"; +import { Alerts, Button, Card, Forms, Margins, Parser, React, Switch } from "../webpack/common"; +import DonateButton from "./DonateButton"; import ErrorBoundary from "./ErrorBoundary"; import { Flex } from "./Flex"; import { handleComponentFailed } from "./handleComponentFailed"; @@ -52,15 +53,36 @@ export default ErrorBoundary.wrap(function Settings() { return ( + +
+ Support the Project + + Please consider supporting the Development of Vencord by donating! + + +
+ +
+ Settings - + Settings Directory: {settingsDir} - {!IS_WEB && + {!IS_WEB &&