mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
reorder veriables
This commit is contained in:
parent
9e77aebb58
commit
f5f79019fa
1 changed files with 15 additions and 18 deletions
|
@ -24,15 +24,14 @@ import definePlugin, { OptionType, StartAt } from "@utils/types";
|
||||||
import { findByCodeLazy, findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
import { findByCodeLazy, findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
||||||
import { Button, Clickable, Icons, Menu, Toasts, useState } from "@webpack/common";
|
import { Button, Clickable, Icons, Menu, Toasts, useState } from "@webpack/common";
|
||||||
|
|
||||||
const PMenu = findComponentByCodeLazy(/{id:\i,label:\i,icon:\i,hint:\i,renderSubmenu:\i,...\i}/);
|
const settings = definePluginSettings({
|
||||||
|
StatusPresets: {
|
||||||
const EmojiComponent = findComponentByCodeLazy(/\i.translateSurrogatesToInlineEmoji\(\i.name\)/);
|
type: OptionType.COMPONENT,
|
||||||
|
description: "Status Presets",
|
||||||
|
component: () => <></>,
|
||||||
const StatusStyles = findByPropsLazy("statusItem");
|
default: {}
|
||||||
|
}
|
||||||
const customStatusSettings = getUserSettingLazy("status", "customStatus");
|
});
|
||||||
const setStatus = findByCodeLazy(/default\.track\(\i.\i.CUSTOM_STATUS_UPDATED/);
|
|
||||||
|
|
||||||
interface Emoji {
|
interface Emoji {
|
||||||
animated: boolean;
|
animated: boolean;
|
||||||
|
@ -47,15 +46,13 @@ interface DiscordStatus {
|
||||||
status: "online" | "dnd" | "idle" | "invisible";
|
status: "online" | "dnd" | "idle" | "invisible";
|
||||||
}
|
}
|
||||||
|
|
||||||
const settings = definePluginSettings({
|
const StatusStyles = findByPropsLazy("statusItem");
|
||||||
StatusPresets: {
|
const setStatus = findByCodeLazy(/default\.track\(\i.\i.CUSTOM_STATUS_UPDATED/);
|
||||||
type: OptionType.COMPONENT,
|
|
||||||
description: "Status Presets",
|
|
||||||
component: () => <></>,
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
const PMenu = findComponentByCodeLazy(/{id:\i,label:\i,icon:\i,hint:\i,renderSubmenu:\i,...\i}/);
|
||||||
|
const EmojiComponent = findComponentByCodeLazy(/\i.translateSurrogatesToInlineEmoji\(\i.name\)/);
|
||||||
|
|
||||||
|
const customStatusSettings = getUserSettingLazy("status", "customStatus");
|
||||||
|
|
||||||
const ClearStatusButton = () => <Clickable className={StatusStyles.clearCustomStatusHint} onClick={() => customStatusSettings?.updateSetting(null)}><Icons.CircleXIcon size="sm" /></Clickable>;
|
const ClearStatusButton = () => <Clickable className={StatusStyles.clearCustomStatusHint} onClick={() => customStatusSettings?.updateSetting(null)}><Icons.CircleXIcon size="sm" /></Clickable>;
|
||||||
|
|
||||||
|
@ -105,7 +102,7 @@ const StatusSubMenuComponent = () => {
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "StatusPresets",
|
name: "StatusPresets",
|
||||||
description: "Allows you to remember your status and set it later.",
|
description: "Allows you to remember your status and set it later",
|
||||||
authors: [Devs.Dolfies],
|
authors: [Devs.Dolfies],
|
||||||
settings: settings,
|
settings: settings,
|
||||||
dependencies: ["UserSettingsAPI"],
|
dependencies: ["UserSettingsAPI"],
|
||||||
|
|
Loading…
Reference in a new issue