diff --git a/src/equicordplugins/betterShopPreview/index.tsx b/src/equicordplugins/betterShopPreview/index.tsx index 53535163..a0f1f1f9 100644 --- a/src/equicordplugins/betterShopPreview/index.tsx +++ b/src/equicordplugins/betterShopPreview/index.tsx @@ -67,10 +67,10 @@ export default definePlugin({ settings, patches: [ { - find: "}),(0,l.jsx)(T.default.Title,{className:en.title,children:er.default.Messages.COLLECTIBLES_SHOP})]", + find: "}),(0,l.jsx)(T.default.Title,{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP})]", replacement: [{ - match: "{className:en.title,children:er.default.Messages.COLLECTIBLES_SHOP}", - replace: "{className:en.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}" + match: "{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP}", + replace: "{className:ei.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}" }] } ], diff --git a/src/equicordplugins/runInConsole/index.tsx b/src/equicordplugins/runInConsole/index.tsx deleted file mode 100644 index c23daeb6..00000000 --- a/src/equicordplugins/runInConsole/index.tsx +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Vencord, a modification for Discord's desktop app - * Copyright (c) 2023 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 { classNameFactory, disableStyle, enableStyle } from "@api/Styles"; -import { EquicordDevs } from "@utils/constants"; -import { Logger } from "@utils/Logger"; -import { classes } from "@utils/misc"; -import { closeModal, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, openModal } from "@utils/modal"; -import definePlugin from "@utils/types"; -import { Button, Forms, showToast, Toasts, useState } from "@webpack/common"; - -import style from "./style.css?managed"; - -function runCode(code: string) { - try { - const output = Function(`return () => {${code}}`)()(); - - showToast(`${output}`, Toasts.Type.SUCCESS); - } catch (e) { - new Logger("Run in Console").error(e); - - showToast(`${e}`, Toasts.Type.FAILURE); - } -} - -const cl = classNameFactory("vc-ric-"); - -function EditCodeModal({ rootProps, close, value }: { rootProps: ModalProps, close(): void; value: string; }) { - const [code, setCode] = useState(value); - - return ( - - - - Edit Code & Run - - - - - - -