diff --git a/README.md b/README.md index ea28d026..1e5a263a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch ### Extra included plugins
-146 additional plugins +147 additional plugins ### All Platforms - AllCallTimers by MaxHerbold & D3SOX @@ -91,6 +91,7 @@ You can join our [discord server](https://discord.gg/5Xh2W87egW) for commits, ch - MessagePeek by HypedDomi - MessageTranslate by Samwich - MoreStickers by Leko & Arjix +- MoreThemes by Kyuuhachi - NeverPausePreviews by vappstar - NewPluginsManager by Sqaaakoi - NoAppsAllowed by kvba diff --git a/src/equicordplugins/anammox/index.ts b/src/equicordplugins/anammox/index.ts index e80031cb..f9388ede 100644 --- a/src/equicordplugins/anammox/index.ts +++ b/src/equicordplugins/anammox/index.ts @@ -108,7 +108,7 @@ export default definePlugin({ }, { // Emoji category list - find: "#{intl::EMOJI_CATEGORY_TOP_GUILD_EMOJI}", + find: "#{intl::EMOJI_CATEGORY_TOP_GUILD_EMOJI},{guildName:", replacement: { match: /(?<=(\i)\.unshift\((\i)\):)(?=\1\.push\(\2\))/, replace: "$2.isNitroLocked||" diff --git a/src/equicordplugins/channelTabs/components/BookmarkContainer.tsx b/src/equicordplugins/channelTabs/components/BookmarkContainer.tsx index 4fbf0768..8c97f625 100644 --- a/src/equicordplugins/channelTabs/components/BookmarkContainer.tsx +++ b/src/equicordplugins/channelTabs/components/BookmarkContainer.tsx @@ -84,59 +84,71 @@ function BookmarkFolderOpenMenu(props: BookmarkProps) { onClose={() => FluxDispatcher.dispatch({ type: "CONTEXT_MENU_CLOSE" })} aria-label="Bookmark Folder Menu" > - {bookmark.bookmarks.map((b, i) => <> - - {b.name} - - {bookmarkNotificationDot && } - } - icon={() => } - showIconFirst={true} - action={() => switchChannel(b)} /> - ( - bookmarkNotificationDot && - ReadStateUtils.ackChannel(ChannelStore.getChannel(b.channelId))} /> - - ) - + {bookmark.bookmarks.map((b, i) => ( + + + {b.name} + + {bookmarkNotificationDot && } + + } + icon={() => } + showIconFirst={true} + action={() => switchChannel(b)} + > + {bookmarkNotificationDot && ( + + ReadStateUtils.ackChannel(ChannelStore.getChannel(b.channelId))} + /> + + )} - { - const key = openModal(modalProps => { - const newBookmarks = [...bookmark.bookmarks]; - newBookmarks[i].name = name; - methods.editBookmark(index, { bookmarks: newBookmarks }); - closeModal(key); - }} /> + const key = openModal(modalProps => + { + const newBookmarks = [...bookmark.bookmarks]; + newBookmarks[i].name = name; + methods.editBookmark(index, { bookmarks: newBookmarks }); + closeModal(key); + }} + /> ); - }} /> + }} + /> { methods.deleteBookmark(i, index); - }} /> + }} + /> { const newBookmarks = [...bookmark.bookmarks]; newBookmarks.splice(i, 1); - methods.addBookmark(b); methods.editBookmark(index, { bookmarks: newBookmarks }); - }} /> + }} + /> - - )} - + + ))} + ); } diff --git a/src/equicordplugins/messageLinkTooltip/index.tsx b/src/equicordplugins/messageLinkTooltip/index.tsx index 33fdbae0..3b08c1e4 100644 --- a/src/equicordplugins/messageLinkTooltip/index.tsx +++ b/src/equicordplugins/messageLinkTooltip/index.tsx @@ -1,6 +1,6 @@ /* * Vencord, a Discord client mod - * Copyright (c) 2024 Vendicated and contributors + * Copyright (c) 2025 Vendicated and contributors * SPDX-License-Identifier: GPL-3.0-or-later */ @@ -10,35 +10,10 @@ import { definePluginSettings } from "@api/Settings"; import { getUserSettingLazy } from "@api/UserSettings"; import ErrorBoundary from "@components/ErrorBoundary"; import { Devs } from "@utils/constants"; -import { proxyLazy } from "@utils/lazy"; import definePlugin, { OptionType } from "@utils/types"; import { findComponentByCodeLazy } from "@webpack"; -import { ChannelStore, Constants, Forms, MessageStore, RestAPI, Tooltip, useEffect, useState, useStateFromStores } from "@webpack/common"; -import type { ComponentType, HTMLAttributes } from "react"; - -declare enum SpinnerTypes { - WANDERING_CUBES = "wanderingCubes", - CHASING_DOTS = "chasingDots", - PULSING_ELLIPSIS = "pulsingEllipsis", - SPINNING_CIRCLE = "spinningCircle", - SPINNING_CIRCLE_SIMPLE = "spinningCircleSimple", - LOW_MOTION = "lowMotion", -} - -type Spinner = ComponentType, "children"> & { - type?: SpinnerTypes; - animated?: boolean; - className?: string; - itemClassName?: string; - "aria-label"?: string; -}> & { - Type: typeof SpinnerTypes; -}; - -const { Spinner } = proxyLazy(() => Forms as any as { - Spinner: Spinner, - SpinnerTypes: typeof SpinnerTypes; -}); +import { ChannelStore, Constants, MessageStore, RestAPI, Tooltip, useEffect, useState, useStateFromStores } from "@webpack/common"; +import type { ComponentType } from "react"; const MessageDisplayCompact = getUserSettingLazy("textAndImages", "messageDisplayCompact")!; @@ -104,7 +79,7 @@ export default definePlugin({ find: "#{intl::REPLY_QUOTE_MESSAGE_NOT_LOADED}", replacement: { // Should match two places - match: /(\i\.clickable),\{/g, + match: /(\i\.\i),\{(?=className:\i\(\)\(\i\.repliedTextPreview,\i\.clickable)/g, replace: "$self.ReplyTooltip,{Component:$1,vcProps:arguments[0]," }, predicate: () => settings.store.onReply, @@ -112,8 +87,8 @@ export default definePlugin({ { find: "#{intl::MESSAGE_FORWARDED}", replacement: { - match: /(null:.{0,20})(\i\.\i\i),\{/, - replace: "$1$self.ForwardTooltip,{Component:$2,vcProps:arguments[0]," + match: /(\i\.\i),\{(?=className:\i\.footerContainer)/g, + replace: "$self.ForwardTooltip,{Component:$1,vcProps:arguments[0]," }, predicate: () => settings.store.onForward, }, @@ -159,9 +134,8 @@ function MessagePreview({ channelId, messageId }) { const compact = settings.store.display === "compact" ? true : settings.store.display === "cozy" ? false : rawCompact; - // TODO handle load failure if (!message) { - return ; + return Loading...; } return