mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-30 08:54:24 -04:00
feat(settings): enhance user tag settings with additional options
This commit is contained in:
parent
7a545ce83d
commit
e02a25ef52
3 changed files with 35 additions and 20 deletions
|
@ -28,6 +28,7 @@ export default definePlugin({
|
||||||
guild_id !== SelectedGuildStore.getGuildId() && <Popout
|
guild_id !== SelectedGuildStore.getGuildId() && <Popout
|
||||||
position="top"
|
position="top"
|
||||||
renderPopout={() => <ServerProfileComponent guildId={guild_id} />}
|
renderPopout={() => <ServerProfileComponent guildId={guild_id} />}
|
||||||
|
targetElementRef={{} as any} // Add ref to satisfy type checking
|
||||||
>
|
>
|
||||||
{popoutProps => <div className={cl("footer-element")} {...popoutProps}>
|
{popoutProps => <div className={cl("footer-element")} {...popoutProps}>
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,5 +17,20 @@ export const settings = definePluginSettings({
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
description: "Text to display for special users",
|
description: "Text to display for special users",
|
||||||
default: "Special",
|
default: "Special",
|
||||||
|
},
|
||||||
|
dontShowBotTag: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Don't show bot tag",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
dontShowForBots: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Don't show tags for bots",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
tagSettings: {
|
||||||
|
type: OptionType.COMPONENT,
|
||||||
|
description: "Tag Settings",
|
||||||
|
component: () => null // This will be handled by the SettingsComponent in settings.tsx
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -85,30 +85,29 @@ function SettingsComponent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const settings = definePluginSettings({
|
export const settings = definePluginSettings({
|
||||||
dontShowForBots: {
|
|
||||||
description: "Don't show extra tags for bots (excluding webhooks)",
|
|
||||||
type: OptionType.BOOLEAN,
|
|
||||||
default: false
|
|
||||||
},
|
|
||||||
dontShowBotTag: {
|
|
||||||
description: "Only show extra tags for bots / Hide [APP] text",
|
|
||||||
type: OptionType.BOOLEAN,
|
|
||||||
default: false,
|
|
||||||
restartNeeded: true
|
|
||||||
},
|
|
||||||
tagSettings: {
|
|
||||||
type: OptionType.COMPONENT,
|
|
||||||
component: SettingsComponent,
|
|
||||||
description: "fill me"
|
|
||||||
},
|
|
||||||
specialUsers: {
|
specialUsers: {
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
description: "List of special user IDs (comma separated)",
|
description: "Special users (comma-separated user IDs)",
|
||||||
default: "878151241769820173",
|
default: ""
|
||||||
},
|
},
|
||||||
specialTag: {
|
specialTag: {
|
||||||
type: OptionType.STRING,
|
type: OptionType.STRING,
|
||||||
description: "Text to display for special users",
|
description: "Tag for special users",
|
||||||
default: "Special",
|
default: "SPECIAL"
|
||||||
|
},
|
||||||
|
dontShowBotTag: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Don't show bot tag",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
dontShowForBots: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Don't show tags for bots",
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
tagSettings: {
|
||||||
|
type: OptionType.COMPONENT,
|
||||||
|
description: "Tag Settings",
|
||||||
|
component: SettingsComponent
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue