From 96dc2e12d030ac6d725bdfc58f1c47d35aae67a8 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 4 Apr 2023 10:26:53 -0300 Subject: [PATCH] Fix Web & Game Activity Toggle (#777) --- .github/workflows/reportBrokenPlugins.yml | 2 +- scripts/build/buildWeb.mjs | 4 +- src/components/PluginSettings/index.tsx | 3 +- src/plugins/consoleShortcuts.ts | 1 + src/plugins/devCompanion.dev.tsx | 6 ++- src/plugins/gameActivityToggle/index.tsx | 45 ++++++++++++----------- src/plugins/gameActivityToggle/style.css | 16 -------- 7 files changed, 36 insertions(+), 41 deletions(-) diff --git a/.github/workflows/reportBrokenPlugins.yml b/.github/workflows/reportBrokenPlugins.yml index 2e927bb8..6dcc09d3 100644 --- a/.github/workflows/reportBrokenPlugins.yml +++ b/.github/workflows/reportBrokenPlugins.yml @@ -50,7 +50,7 @@ jobs: export CHROMIUM_BIN=$(which chromium-browser) export USE_CANARY=true - esbuild test/generateReport.ts > dist/report.mjs + esbuild scripts/generateReport.ts > dist/report.mjs node dist/report.mjs >> $GITHUB_STEP_SUMMARY env: DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} diff --git a/scripts/build/buildWeb.mjs b/scripts/build/buildWeb.mjs index b9d361b6..df75d35a 100644 --- a/scripts/build/buildWeb.mjs +++ b/scripts/build/buildWeb.mjs @@ -45,7 +45,9 @@ const commonOptions = { define: { IS_WEB: "true", IS_STANDALONE: "true", - IS_DEV: JSON.stringify(watch) + IS_DEV: JSON.stringify(watch), + IS_DISCORD_DESKTOP: "false", + IS_VENCORD_DESKTOP: "false" } }; diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 02d89f81..f3a5cd38 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -46,6 +46,7 @@ const cl = classNameFactory("vc-plugins-"); const logger = new Logger("PluginSettings", "#a6d189"); const InputStyles = findByPropsLazy("inputDefault", "inputWrapper"); +const ButtonClasses = findByPropsLazy("button", "disabled", "enabled"); const CogWheel = LazyComponent(() => findByCode("18.564C15.797 19.099 14.932 19.498 14 19.738V22H10V19.738C9.069")); const InfoIcon = LazyComponent(() => findByCode("4.4408921e-16 C4.4771525,-1.77635684e-15 4.4408921e-16")); @@ -154,7 +155,7 @@ function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLe {plugin.name}{isNew && } - - )} - +