From a48676460bbcf13c5f0718b3d0e8e53782d0be97 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:41:47 -0400 Subject: [PATCH] Revert "Bob The Fixer" This reverts commit 9f4c4f30ab1834ec1b8eb37b27f1d9832067e902. --- scripts/build/build.mjs | 2 -- scripts/build/common.mjs | 5 ++--- scripts/generateEquicordPluginList.ts | 4 ++-- scripts/generatePluginList.ts | 4 ++-- src/components/PluginSettings/index.tsx | 3 +-- src/modules.d.ts | 2 +- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 50bf5be9..0258604e 100644 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -186,7 +186,6 @@ await Promise.all([ sourcemap, plugins: [ globPlugins("vencordDesktop"), - globPlugins("fullcordDesktop"), ...commonOpts.plugins ], define: { @@ -239,7 +238,6 @@ await Promise.all([ sourcemap, plugins: [ globPlugins("equicordDesktop"), - globPlugins("fullcordDesktop"), ...commonOpts.plugins ], define: { diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index e280f4eb..4df03885 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -98,7 +98,7 @@ export const makeAllPackagesExternalPlugin = { }; /** - * @type {(kind: "web" | "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "fullcordDesktop") => import("esbuild").Plugin} + * @type {(kind: "web" | "discordDesktop" | "vencordDesktop" | "equicordDesktop") => import("esbuild").Plugin} */ export const globPlugins = kind => ({ name: "glob-plugins", @@ -138,8 +138,7 @@ export const globPlugins = kind => ({ (target === "desktop" && kind === "web") || (target === "discordDesktop" && kind !== "discordDesktop") || (target === "vencordDesktop" && kind !== "vencordDesktop") || - (target === "equicordDesktop" && kind !== "equicordDesktop") || - (target === "fullcordDesktop" && kind !== "fullcordDesktop"); + (target === "equicordDesktop" && kind !== "equicordDesktop"); if (excluded) { const name = await resolvePluginName(fullDir, file); diff --git a/scripts/generateEquicordPluginList.ts b/scripts/generateEquicordPluginList.ts index aa63adc5..b806d7a9 100644 --- a/scripts/generateEquicordPluginList.ts +++ b/scripts/generateEquicordPluginList.ts @@ -39,7 +39,7 @@ interface PluginData { hasCommands: boolean; required: boolean; enabledByDefault: boolean; - target: "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "fullcordDesktop" | "desktop" | "web" | "dev"; + target: "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "desktop" | "web" | "dev"; filePath: string; } @@ -195,7 +195,7 @@ async function parseFile(fileName: string) { const target = getPluginTarget(fileName); if (target) { - if (!["web", "discordDesktop", "vencordDesktop", "equicordDesktop", "fullcordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); + if (!["web", "discordDesktop", "vencordDesktop", "equicordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); data.target = target as any; } diff --git a/scripts/generatePluginList.ts b/scripts/generatePluginList.ts index ea975349..5c4efc83 100644 --- a/scripts/generatePluginList.ts +++ b/scripts/generatePluginList.ts @@ -39,7 +39,7 @@ interface PluginData { hasCommands: boolean; required: boolean; enabledByDefault: boolean; - target: "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "fullcordDesktop" | "desktop" | "web" | "dev"; + target: "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "desktop" | "web" | "dev"; filePath: string; } @@ -195,7 +195,7 @@ async function parseFile(fileName: string) { const target = getPluginTarget(fileName); if (target) { - if (!["web", "discordDesktop", "vencordDesktop", "equicordDesktop", "fullcordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); + if (!["web", "discordDesktop", "vencordDesktop", "equicordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); data.target = target as any; } diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index d4bab1f5..b8ebff50 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -176,12 +176,11 @@ function ExcludedPluginsList({ search }: { search: string; }) { const matchingExcludedPlugins = Object.entries(ExcludedPlugins) .filter(([name]) => name.toLowerCase().includes(search)); - const ExcludedReasons: Record<"web" | "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "fullcordDesktop" | "desktop" | "dev", string> = { + const ExcludedReasons: Record<"web" | "discordDesktop" | "vencordDesktop" | "equicordDesktop" | "desktop" | "dev", string> = { desktop: "Discord Desktop app or Vesktop", discordDesktop: "Discord Desktop app", vencordDesktop: "Vesktop app", equicordDesktop: "Equibop app", - fullcordDesktop: "Equibop and Vesktop apps", web: "Vesktop app and the Web version of Discord", dev: "Developer version of Equicord" }; diff --git a/src/modules.d.ts b/src/modules.d.ts index 48c9c733..698ff2ab 100644 --- a/src/modules.d.ts +++ b/src/modules.d.ts @@ -25,7 +25,7 @@ declare module "~plugins" { folderName: string; userPlugin: boolean; }>; - export const ExcludedPlugins: Record; + export const ExcludedPlugins: Record; } declare module "~pluginNatives" {