fix building
This commit is contained in:
parent
899a24db2c
commit
6b1c3a9445
28 changed files with 36 additions and 35 deletions
|
|
@ -152,7 +152,8 @@ export async function parseFile(fileName: string) {
|
|||
enabledByDefault: false,
|
||||
required: false,
|
||||
isModified: false,
|
||||
tags: [] as string[]
|
||||
tags: [] as string[],
|
||||
searchTerms: [] as string[],
|
||||
} as PluginData;
|
||||
|
||||
for (const prop of pluginObj.properties) {
|
||||
|
|
@ -208,9 +209,10 @@ export async function parseFile(fileName: string) {
|
|||
});
|
||||
break;
|
||||
case "tags":
|
||||
if (!isArrayLiteralExpression(value)) throw fail("tags is not an array literal");
|
||||
data.tags = value.elements.map(e => {
|
||||
if (!isStringLiteral(e)) throw fail("tags array contains non-string literals");
|
||||
case "searchTerms":
|
||||
if (!isArrayLiteralExpression(value)) throw fail(`${key} is not an array literal`);
|
||||
data[key] = value.elements.map(e => {
|
||||
if (!isStringLiteral(e)) throw fail(`${key} array contains non-string literals`);
|
||||
return e.text;
|
||||
});
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { findByCodeLazy, findLazy } from "webpack";
|
||||
import { findByCodeLazy, findLazy } from "@webpack";
|
||||
|
||||
let defaultSounds: null | string[] = null;
|
||||
const findDefaultSounds = findLazy(module => module.resolve && module.id && module.keys().some(key => key.endsWith(".mp3")), false);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import { isTruthy } from "@utils/guards";
|
|||
import { Logger } from "@utils/Logger";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { classes } from "@utils/misc";
|
||||
import { useAwaiter, useCleanupEffect, useIntersection } from "@utils/react";
|
||||
import { useAwaiter, useIntersection } from "@utils/react";
|
||||
import { PluginTag, PluginTags } from "@utils/types";
|
||||
import { Alerts, lodash, Parser, React, SearchableSelect, Select, TextInput, Toasts, Tooltip, useCallback, useMemo, useRef, useState } from "@webpack/common";
|
||||
import { JSX } from "react";
|
||||
|
|
@ -405,7 +405,7 @@ export default function PluginSettings() {
|
|||
|
||||
<HeadingTertiary className={classes(Margins.top20, Margins.bottom8)}>
|
||||
Filters
|
||||
</HeadingTertiary>;
|
||||
</HeadingTertiary>
|
||||
|
||||
<ErrorBoundary noop>
|
||||
<TextInput
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ import { Paragraph } from "@components/Paragraph";
|
|||
import { openContributorModal, openPluginModal, SettingsTab, wrapTab } from "@components/settings";
|
||||
import { QuickAction, QuickActionCard } from "@components/settings/QuickAction";
|
||||
import { SpecialCard } from "@components/settings/SpecialCard";
|
||||
import BadgeAPI from "@plugins/_api/badges";
|
||||
import { gitRemote } from "@shared/vencordUserAgent";
|
||||
import { DONOR_ROLE_ID, GUILD_ID, IS_MAC, IS_WINDOWS, VC_DONOR_ROLE_ID, VC_GUILD_ID } from "@utils/constants";
|
||||
import { classNameFactory } from "@utils/css";
|
||||
|
|
@ -27,7 +28,6 @@ import { Margins } from "@utils/margins";
|
|||
import { identity, isAnyPluginDev } from "@utils/misc";
|
||||
import { relaunch } from "@utils/native";
|
||||
import { GuildMemberStore, React, Select, UserStore } from "@webpack/common";
|
||||
import BadgeAPI from "plugins/_api/badges";
|
||||
|
||||
import { DonateButtonComponent } from "./DonateButton";
|
||||
import { openNotificationSettingsModal } from "./NotificationSettings";
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ export interface ReporterData {
|
|||
};
|
||||
failedWebpack: Record<TypeWebpackSearchHistory, string[][]>;
|
||||
}
|
||||
|
||||
export const reporterData: ReporterData = {
|
||||
failedPatches: {
|
||||
foundNoModule: [],
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export default definePlugin({
|
|||
name: "BetterActivities",
|
||||
description: "Shows activity icons in the member list and allows showing all activities",
|
||||
authors: [Devs.D3SOX, Devs.Arjix, Devs.AutumnVN, Devs.thororen],
|
||||
tags: ["activity"],
|
||||
tags: ["Activity"],
|
||||
settings,
|
||||
patchActivityList,
|
||||
showAllActivitiesComponent,
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ function activeNowView(cards) {
|
|||
export default definePlugin({
|
||||
name: "ClientSideBlock",
|
||||
description: "Allows you to locally hide almost all content from any user",
|
||||
tags: ["blocked", "block", "hide", "hidden", "noblockedmessages"],
|
||||
searchTerms: ["blocked", "block", "hide", "hidden", "noblockedmessages"],
|
||||
authors: [Devs.Samwich, EquicordDevs.KamiRu],
|
||||
settings,
|
||||
activeNowView,
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ export default definePlugin({
|
|||
name: "CollapsibleUI",
|
||||
description: "Native collapsible channel, member, chat button, and user area surfaces.",
|
||||
authors: [EquicordDevs.benjii],
|
||||
tags: ["ui", "sidebar", "layout"],
|
||||
searchTerms: ["ui", "sidebar", "layout"],
|
||||
managedStyle,
|
||||
settings,
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { DataStore } from "@api/index";
|
||||
import { isPluginEnabled, plugins, startPlugin, stopPlugin } from "@api/PluginManager";
|
||||
import { SettingsStore } from "@api/Settings";
|
||||
import { Settings, SettingsStore } from "@api/Settings";
|
||||
import { getUserSettingLazy } from "@api/UserSettings";
|
||||
import { openPluginModal } from "@components/settings/tabs";
|
||||
import { toggleEnabled } from "@equicordplugins/equicordHelper/utils";
|
||||
|
|
@ -18,7 +18,6 @@ import { Guild } from "@vencord/discord-types";
|
|||
import { findByPropsLazy, findExportedComponentLazy, findStoreLazy } from "@webpack";
|
||||
import { Alerts, ChannelActionCreators, ChannelRouter, ChannelStore, ComponentDispatch, FluxDispatcher, GuildStore, IconUtils, MediaEngineStore, MessageStore, NavigationRouter, React, ReadStateStore, ReadStateUtils, SelectedChannelStore, SelectedGuildStore, SettingsRouter, StreamerModeStore, Toasts, useEffect, UserStore, VoiceActions } from "@webpack/common";
|
||||
import type { FC, ReactElement, ReactNode } from "react";
|
||||
import { Settings } from "Vencord";
|
||||
|
||||
import commandPalette from ".";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export default definePlugin({
|
|||
name: "CursorBuddy",
|
||||
description: "Adds a sprite that follows your cursor.",
|
||||
authors: [Devs.Ven, Devs.adryd, EquicordDevs.nexpid, EquicordDevs.ZcraftElite],
|
||||
tags: ["Oneko", "FatassHorse", "Pet"],
|
||||
searchTerms: ["Oneko", "FatassHorse", "Pet"],
|
||||
settings,
|
||||
isModified: true,
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import SettingsPlugin from "@plugins/_core/settings";
|
||||
import { detectClient } from "@plugins/_core/supportHelper";
|
||||
import { gitHashShort } from "@shared/vencordUserAgent";
|
||||
import { React } from "@webpack/common";
|
||||
import SettingsPlugin from "plugins/_core/settings";
|
||||
import { JSX } from "react";
|
||||
|
||||
import { ChromiumIcon, ClientIcon, DevBannerIcon, DiscordIcon, ElectronIcon, EquicordIcon, names, settings } from ".";
|
||||
|
|
|
|||
|
|
@ -77,11 +77,10 @@ migratePluginSettings("EquicordToolbox", "VencordToolbox");
|
|||
export default definePlugin({
|
||||
name: "EquicordToolbox",
|
||||
description: "Adds a button next to the inbox button in the channel header that houses Equicord quick actions",
|
||||
tags: ["Voice", "Accessibility"],
|
||||
authors: [Devs.Ven, Devs.AutumnVN],
|
||||
dependencies: ["HeaderBarAPI"],
|
||||
|
||||
settings,
|
||||
|
||||
headerBarButton: {
|
||||
icon: Icon,
|
||||
render: VencordPopoutButton,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export default definePlugin({
|
|||
name: "FavouriteAnything",
|
||||
description: "Favourite any image, video, or file attachment",
|
||||
authors: [Devs.nin0dev, EquicordDevs.davri],
|
||||
tags: ["favorite"],
|
||||
searchTerms: ["favorite"],
|
||||
managedStyle,
|
||||
patches: [
|
||||
// EMBEDS
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export default definePlugin({
|
|||
name: "GoogleThat",
|
||||
description: "Adds a command to send a internet search link",
|
||||
authors: [Devs.Samwich, EquicordDevs.KrystalSkull],
|
||||
tags: ["search", "google", "query", "duckduckgo", "command"],
|
||||
searchTerms: ["search", "google", "query", "duckduckgo", "command"],
|
||||
settings,
|
||||
commands: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export default definePlugin({
|
|||
name: "HideServers",
|
||||
description: "Allows you to hide servers from the guild list and quick switcher by right clicking them",
|
||||
authors: [EquicordDevs.bep],
|
||||
tags: ["guild", "server", "hide", "folder"],
|
||||
searchTerms: ["guild", "server", "hide", "folder"],
|
||||
|
||||
dependencies: ["ServerListAPI"],
|
||||
contextMenus: {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export default definePlugin({
|
|||
description: "Instantly screenshare when joining a voice channel with support for desktop sources, windows, and video input devices (cameras, capture cards)",
|
||||
authors: [Devs.HAHALOSAH, Devs.thororen, EquicordDevs.mart],
|
||||
dependencies: ["EquicordToolbox"],
|
||||
tags: ["ScreenshareKeybind"],
|
||||
searchTerms: ["ScreenshareKeybind"],
|
||||
autoStartStream,
|
||||
settings,
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,11 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { definePluginSettings, Settings } from "@api/Settings";
|
||||
import { Button } from "@components/Button";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { OptionType } from "@utils/types";
|
||||
import { Alerts, useState } from "@webpack/common";
|
||||
import { Settings } from "Vencord";
|
||||
|
||||
import { clearLogs, Native } from ".";
|
||||
import { ImageCacheDir, LogsDir } from "./components/FolderSelectInput";
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ export default definePlugin({
|
|||
authors: [EquicordDevs.Etorix, EquicordDevs.korzi],
|
||||
settings,
|
||||
|
||||
tags: ["LimitMiddleClickPaste"],
|
||||
searchTerms: ["LimitMiddleClickPaste"],
|
||||
|
||||
isPastingDisabled(isInput: boolean) {
|
||||
const pasteBlocked = Date.now() - lastMiddleClickUp < Math.max(settings.store.pasteThreshold, 1);
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ import { addServerListElement, removeServerListElement, ServerListRenderPosition
|
|||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import definePlugin from "@utils/types";
|
||||
import { FluxDispatcher } from "@webpack/common";
|
||||
import { Tooltip } from "webpack/common/components";
|
||||
import { FluxDispatcher, Tooltip } from "@webpack/common";
|
||||
|
||||
function SearchIcon() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
import "./styles.css";
|
||||
|
||||
import badges from "@plugins/_api/badges";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
import { isEquicordPluginDev, isPluginDev } from "@utils/misc";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findComponentByCodeLazy, findCssClassesLazy } from "@webpack";
|
||||
import badges from "plugins/_api/badges";
|
||||
|
||||
const { roleIcon } = findCssClassesLazy("roleIcon", "separator");
|
||||
const RoleIconComponent = findComponentByCodeLazy("#{intl::ROLE_ICON_ALT_TEXT}");
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@
|
|||
*/
|
||||
|
||||
import { popNotice, showNotice } from "@api/Notices";
|
||||
import { Settings } from "@api/Settings";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { loadLazyChunks } from "@debug/loadLazyChunks";
|
||||
import { reporterData } from "@debug/reporterData";
|
||||
import { getIntlMessageFromHash } from "@utils/discord";
|
||||
import { canonicalizeMatch, canonicalizeReplace } from "@utils/patches";
|
||||
import { filters, findAll, search, wreq } from "@webpack";
|
||||
import { React, Toasts, useState } from "@webpack/common";
|
||||
import { loadLazyChunks } from "debug/loadLazyChunks";
|
||||
import { reporterData } from "debug/reporterData";
|
||||
import { Settings } from "Vencord";
|
||||
|
||||
import { CLIENT_VERSION, logger, PORT, settings } from ".";
|
||||
import { Recieve } from "./types";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { ReporterData } from "debug/reporterData";
|
||||
import { ReporterData } from "@debug/reporterData";
|
||||
|
||||
export type OutgoingMessage = Base<DiffModule | ExtractModule | ModuleList | RawId | I18nValue | VersionResponse>;
|
||||
export type FullOutgoingMessage = OutgoingMessage & Nonce;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import { Settings } from "@api/Settings";
|
|||
import { canonicalizeMatch } from "@utils/patches";
|
||||
import { CodeFilter, stringMatches, wreq } from "@webpack";
|
||||
import { Toasts } from "@webpack/common";
|
||||
import { WebpackPatcher } from "Vencord";
|
||||
|
||||
import { WebpackPatcher } from "../../Vencord";
|
||||
import { logger, settings as companionSettings } from ".";
|
||||
import { FindNode } from "./types/recieve";
|
||||
|
||||
|
|
|
|||
|
|
@ -1101,7 +1101,7 @@ const messageSendListener = (_channelId: string, messageObj: { content: string;
|
|||
export default definePlugin({
|
||||
name: "FavoriteEmojiFirst",
|
||||
authors: [Devs.Aria, Devs.Ven, EquicordDevs.justjxke],
|
||||
tags: ["EmojiAlias"],
|
||||
tags: ["Emotes", "Customisation"],
|
||||
description: "Puts your favorite emoji first in the emoji autocomplete and also has emoji alias.",
|
||||
settings,
|
||||
contextMenus: {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ migratePluginSettings("FixYoutubeEmbeds", "YoutubeDescription");
|
|||
export default definePlugin({
|
||||
name: "FixYoutubeEmbeds",
|
||||
description: "Bypasses youtube videos being blocked from display on Discord (for example by UMG)",
|
||||
tags: ["Media", "Utility"],
|
||||
authors: [Devs.coolelectronics, Devs.arHSM],
|
||||
settings,
|
||||
patches: [
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { RendererSettings } from "@main/settings";
|
||||
import { app } from "electron";
|
||||
import { RendererSettings } from "main/settings";
|
||||
|
||||
app.on("browser-window-created", (_, win) => {
|
||||
win.webContents.on("frame-created", (_, { frame }) => {
|
||||
|
|
|
|||
|
|
@ -1070,6 +1070,7 @@ export default definePlugin({
|
|||
description: "Display any permutation of custom nicknames, friend nicknames, server nicknames, display names, and usernames in chat.",
|
||||
authors: [EquicordDevs.Etorix, Devs.Rini, Devs.TheKodeToad, Devs.sadan, Devs.prism],
|
||||
tags: ["Appearance", "Customisation"],
|
||||
searchTerms: ["SMYN", "Nicknames", "Custom Nicknames"],
|
||||
isModified: true,
|
||||
settings,
|
||||
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@
|
|||
*/
|
||||
|
||||
import { Settings } from "@api/Settings";
|
||||
import { reporterData } from "@debug/reporterData";
|
||||
import { traceFunctionWithResults } from "@debug/Tracer";
|
||||
import { makeLazy } from "@utils/lazy";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import { interpolateIfDefined } from "@utils/misc";
|
||||
import { Patch, PatchReplacement } from "@utils/types";
|
||||
import { WebpackRequire } from "@vencord/discord-types/webpack";
|
||||
import { reporterData } from "debug/reporterData";
|
||||
|
||||
import { AnyModuleFactory, AnyWebpackRequire, MaybePatchedModuleFactory, PatchedModuleFactory } from "./types";
|
||||
import { _blacklistBadModules, _initWebpack, factoryListeners, findModuleFactory, moduleListeners, waitForSubscriptions, wreq } from "./webpack";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue