From 7d997a50b756b69c48b9d8454b0bcc2d09902d40 Mon Sep 17 00:00:00 2001
From: thororen1234 <78185467+thororen1234@users.noreply.github.com>
Date: Wed, 17 Sep 2025 20:41:42 -0400
Subject: [PATCH] Plugins Tab: Userplugins filter
@Eazvy
---
src/components/settings/AddonCard.css | 1 -
src/components/settings/AddonCard.tsx | 2 +-
.../settings/tabs/plugins/PluginCard.tsx | 23 +++++++++++++++----
.../settings/tabs/plugins/index.tsx | 12 ++++++----
4 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/src/components/settings/AddonCard.css b/src/components/settings/AddonCard.css
index ffc083c4c..0e87cca5d 100644
--- a/src/components/settings/AddonCard.css
+++ b/src/components/settings/AddonCard.css
@@ -52,7 +52,6 @@
width: 100%;
align-items: center;
flex-grow: 1;
- gap: 8px;
}
.vc-addon-author {
diff --git a/src/components/settings/AddonCard.tsx b/src/components/settings/AddonCard.tsx
index 42e954c28..63be7c8af 100644
--- a/src/components/settings/AddonCard.tsx
+++ b/src/components/settings/AddonCard.tsx
@@ -73,8 +73,8 @@ export function AddonCard({ disabled, isNew, sourceBadge, name, infoButton, foot
{name}
- {sourceBadge}
{isNew && }
+ {sourceBadge}
{!!author && (
diff --git a/src/components/settings/tabs/plugins/PluginCard.tsx b/src/components/settings/tabs/plugins/PluginCard.tsx
index 2aa270fb8..ce0e9a9d5 100644
--- a/src/components/settings/tabs/plugins/PluginCard.tsx
+++ b/src/components/settings/tabs/plugins/PluginCard.tsx
@@ -39,6 +39,7 @@ export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, on
const settings = Settings.plugins[plugin.name];
const pluginMeta = PluginMeta[plugin.name];
const isEquicordPlugin = pluginMeta?.folderName?.startsWith("src/equicordplugins/") ?? false;
+ const isUserplugin = pluginMeta?.userPlugin ?? false;
const isEnabled = () => isPluginEnabled(plugin.name);
@@ -104,11 +105,11 @@ export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, on
borderRadius: "2px"
}}
/>
- ) : (
+ ) : isUserplugin ?
- );
+ : (
+
+ );
return (
0 ? [{ label: "Show Custom", value: SearchStatus.CUSTOM }] : []),
+ { label: "Show New", value: SearchStatus.NEW },
]}
serialize={String}
select={onStatusChange}