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
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-function RunCode() {
- return (
-
- );
-}
-
-function EditCode() {
- return (
-
- );
-}
-
-function RunIcon({ className, text }: { className?: string; text: string; }) {
- const [shift, setShift] = useState(false);
-
- document.addEventListener("keyup", event => {
- if (event.key === "Shift") try {
- setShift(false);
- } catch (e) { }
- });
- document.addEventListener("keydown", event => {
- if (event.key === "Shift") try {
- setShift(true);
- } catch (e) { }
- });
-
- return (
-
-
-
- );
-}
-
-function replaceIcon(icon: Function) {
- const svg = document.querySelector(".vc-run-in-console-icon");
-
- if (!svg) return;
-
- svg.firstChild?.remove();
- svg.appendChild(icon());
-}
-
-export default definePlugin({
- name: "RunInConsole",
- description: "Allows you to run code blocks in the console. Press Shift to edit the code before running.",
- authors: [EquicordDevs.Tolgchu],
- patches: [
- {
- find: 'p.SUPPORTS_COPY?(0,i.jsx)("div",{className:G.codeActions',
- replacement: [
- {
- match: 'p.SUPPORTS_COPY?(0,i.jsx)("div",{className:G.codeActions,children:(0,i.jsx)(w,{text:e.content})}):null',
- replace: 'p.SUPPORTS_COPY?(0,i.jsx)("div",{className:G.codeActions,children:[(0,i.jsx)(w,{text:e.content}),(0,i.jsx)($self.RunIcon,{text:e.content})]}):null'
- }
- ]
- }
- ],
- RunIcon,
- start() {
- enableStyle(style);
- },
- stop() {
- disableStyle(style);
- },
-});
diff --git a/src/equicordplugins/runInConsole/style.css b/src/equicordplugins/runInConsole/style.css
deleted file mode 100644
index 7b1b7aa3..00000000
--- a/src/equicordplugins/runInConsole/style.css
+++ /dev/null
@@ -1,27 +0,0 @@
-/* stylelint-disable selector-class-pattern */
-.vc-ric-modal.small_f8e677 {
- height: 800px;
- width: 1000px;
-}
-
-.vc-ric-modal-content-code-input textarea {
- height: 95%;
- width: 100%;
- padding: 10px;
- font-size: 14px;
- font-family: monospace;
- resize: none;
-}
-
-.vc-ric-modal-header {
- justify-content: space-between;
- align-content: center;
-}
-
-.vc-ric-modal-header h1 {
- margin: 0;
-}
-
-.vc-ric-modal-header button {
- padding: 0;
-}