aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-09-19 04:07:24 +0200
committerV <vendicated@riseup.net>2023-09-19 04:11:27 +0200
commit41f5d71e38f785786656e111cf2ea1200e45886d (patch)
tree564a0300485de18a0b8d396118f09c6f756105ed /src/plugins
parentefb88a4df8037fc1394a9e2053c49e75d340f401 (diff)
downloadVencord-41f5d71e38f785786656e111cf2ea1200e45886d.tar.gz
Vencord-41f5d71e38f785786656e111cf2ea1200e45886d.tar.bz2
Vencord-41f5d71e38f785786656e111cf2ea1200e45886d.zip
Bundle dependencies with extensions for webstore rule compliance (#1740)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/_core/supportHelper.tsx (renamed from src/plugins/supportHelper.tsx)2
-rw-r--r--src/plugins/fakeNitro.ts11
-rw-r--r--src/plugins/invisibleChat.desktop/components/DecryptionModal.tsx (renamed from src/plugins/invisibleChat/components/DecryptionModal.tsx)0
-rw-r--r--src/plugins/invisibleChat.desktop/components/EncryptionModal.tsx (renamed from src/plugins/invisibleChat/components/EncryptionModal.tsx)0
-rw-r--r--src/plugins/invisibleChat.desktop/index.tsx (renamed from src/plugins/invisibleChat/index.tsx)0
-rw-r--r--src/plugins/petpet.ts5
-rw-r--r--src/plugins/shikiCodeblocks.desktop/api/languages.ts (renamed from src/plugins/shikiCodeblocks/api/languages.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/api/shiki.ts (renamed from src/plugins/shikiCodeblocks/api/shiki.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/api/themes.ts (renamed from src/plugins/shikiCodeblocks/api/themes.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/components/ButtonRow.tsx (renamed from src/plugins/shikiCodeblocks/components/ButtonRow.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/components/Code.tsx (renamed from src/plugins/shikiCodeblocks/components/Code.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/components/CopyButton.tsx (renamed from src/plugins/shikiCodeblocks/components/CopyButton.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/components/Header.tsx (renamed from src/plugins/shikiCodeblocks/components/Header.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/components/Highlighter.tsx (renamed from src/plugins/shikiCodeblocks/components/Highlighter.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/devicon.css (renamed from src/plugins/shikiCodeblocks/devicon.css)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/hooks/useCopyCooldown.ts (renamed from src/plugins/shikiCodeblocks/hooks/useCopyCooldown.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.ts (renamed from src/plugins/shikiCodeblocks/hooks/useShikiSettings.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/hooks/useTheme.ts (renamed from src/plugins/shikiCodeblocks/hooks/useTheme.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/index.ts (renamed from src/plugins/shikiCodeblocks/index.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/previewExample.tsx (renamed from src/plugins/shikiCodeblocks/previewExample.tsx)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/settings.ts (renamed from src/plugins/shikiCodeblocks/settings.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/shiki.css (renamed from src/plugins/shikiCodeblocks/shiki.css)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/types.ts (renamed from src/plugins/shikiCodeblocks/types.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/utils/color.ts (renamed from src/plugins/shikiCodeblocks/utils/color.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/utils/createStyle.ts (renamed from src/plugins/shikiCodeblocks/utils/createStyle.ts)0
-rw-r--r--src/plugins/shikiCodeblocks.desktop/utils/misc.ts (renamed from src/plugins/shikiCodeblocks/utils/misc.ts)0
26 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx
index f36cc0f..674be8e 100644
--- a/src/plugins/supportHelper.tsx
+++ b/src/plugins/_core/supportHelper.tsx
@@ -27,7 +27,7 @@ import { Alerts, Forms, UserStore } from "@webpack/common";
import gitHash from "~git-hash";
import plugins from "~plugins";
-import settings from "./_core/settings";
+import settings from "./settings";
const REMEMBER_DISMISS_KEY = "Vencord-SupportHelper-Dismiss";
diff --git a/src/plugins/fakeNitro.ts b/src/plugins/fakeNitro.ts
index f56239f..1313145 100644
--- a/src/plugins/fakeNitro.ts
+++ b/src/plugins/fakeNitro.ts
@@ -19,7 +19,7 @@
import { addPreEditListener, addPreSendListener, removePreEditListener, removePreSendListener } from "@api/MessageEvents";
import { definePluginSettings, Settings } from "@api/Settings";
import { Devs } from "@utils/constants";
-import { ApngBlendOp, ApngDisposeOp, getGifEncoder, importApngJs } from "@utils/dependencies";
+import { ApngBlendOp, ApngDisposeOp, importApngJs } from "@utils/dependencies";
import { getCurrentGuild } from "@utils/discord";
import { proxyLazy } from "@utils/lazy";
import { Logger } from "@utils/Logger";
@@ -27,6 +27,7 @@ import definePlugin, { OptionType } from "@utils/types";
import { findByCodeLazy, findByPropsLazy, findLazy, findStoreLazy } from "@webpack";
import { ChannelStore, EmojiStore, FluxDispatcher, Parser, PermissionStore, UserStore } from "@webpack/common";
import type { Message } from "discord-types/general";
+import { applyPalette, GIFEncoder, quantize } from "gifenc";
import type { ReactElement, ReactNode } from "react";
const DRAFT_TYPE = 0;
@@ -650,15 +651,11 @@ export default definePlugin({
},
async sendAnimatedSticker(stickerLink: string, stickerId: string, channelId: string) {
- const [{ parseURL }, {
- GIFEncoder,
- quantize,
- applyPalette
- }] = await Promise.all([importApngJs(), getGifEncoder()]);
+ const { parseURL } = importApngJs();
const { frames, width, height } = await parseURL(stickerLink);
- const gif = new GIFEncoder();
+ const gif = GIFEncoder();
const resolution = Settings.plugins.FakeNitro.stickerSize;
const canvas = document.createElement("canvas");
diff --git a/src/plugins/invisibleChat/components/DecryptionModal.tsx b/src/plugins/invisibleChat.desktop/components/DecryptionModal.tsx
index b4bf6eb..b4bf6eb 100644
--- a/src/plugins/invisibleChat/components/DecryptionModal.tsx
+++ b/src/plugins/invisibleChat.desktop/components/DecryptionModal.tsx
diff --git a/src/plugins/invisibleChat/components/EncryptionModal.tsx b/src/plugins/invisibleChat.desktop/components/EncryptionModal.tsx
index f893680..f893680 100644
--- a/src/plugins/invisibleChat/components/EncryptionModal.tsx
+++ b/src/plugins/invisibleChat.desktop/components/EncryptionModal.tsx
diff --git a/src/plugins/invisibleChat/index.tsx b/src/plugins/invisibleChat.desktop/index.tsx
index 58fccb9..58fccb9 100644
--- a/src/plugins/invisibleChat/index.tsx
+++ b/src/plugins/invisibleChat.desktop/index.tsx
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts
index 9b1c2f1..0bfd21a 100644
--- a/src/plugins/petpet.ts
+++ b/src/plugins/petpet.ts
@@ -18,10 +18,10 @@
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, findOption, sendBotMessage } from "@api/Commands";
import { Devs } from "@utils/constants";
-import { getGifEncoder } from "@utils/dependencies";
import { makeLazy } from "@utils/lazy";
import definePlugin from "@utils/types";
import { findByCodeLazy, findByPropsLazy } from "@webpack";
+import { applyPalette, GIFEncoder, quantize } from "gifenc";
const DRAFT_TYPE = 0;
const DEFAULT_DELAY = 20;
@@ -124,7 +124,6 @@ export default definePlugin({
}
],
execute: async (opts, cmdCtx) => {
- const { GIFEncoder, quantize, applyPalette } = await getGifEncoder();
const frames = await getFrames();
const noServerPfp = findOption(opts, "no-server-pfp", false);
@@ -143,7 +142,7 @@ export default definePlugin({
const delay = findOption(opts, "delay", DEFAULT_DELAY);
const resolution = findOption(opts, "resolution", DEFAULT_RESOLUTION);
- const gif = new GIFEncoder();
+ const gif = GIFEncoder();
const canvas = document.createElement("canvas");
canvas.width = canvas.height = resolution;
diff --git a/src/plugins/shikiCodeblocks/api/languages.ts b/src/plugins/shikiCodeblocks.desktop/api/languages.ts
index f14a4dc..f14a4dc 100644
--- a/src/plugins/shikiCodeblocks/api/languages.ts
+++ b/src/plugins/shikiCodeblocks.desktop/api/languages.ts
diff --git a/src/plugins/shikiCodeblocks/api/shiki.ts b/src/plugins/shikiCodeblocks.desktop/api/shiki.ts
index 91e179b..91e179b 100644
--- a/src/plugins/shikiCodeblocks/api/shiki.ts
+++ b/src/plugins/shikiCodeblocks.desktop/api/shiki.ts
diff --git a/src/plugins/shikiCodeblocks/api/themes.ts b/src/plugins/shikiCodeblocks.desktop/api/themes.ts
index f31ce60..f31ce60 100644
--- a/src/plugins/shikiCodeblocks/api/themes.ts
+++ b/src/plugins/shikiCodeblocks.desktop/api/themes.ts
diff --git a/src/plugins/shikiCodeblocks/components/ButtonRow.tsx b/src/plugins/shikiCodeblocks.desktop/components/ButtonRow.tsx
index e73eb72..e73eb72 100644
--- a/src/plugins/shikiCodeblocks/components/ButtonRow.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/components/ButtonRow.tsx
diff --git a/src/plugins/shikiCodeblocks/components/Code.tsx b/src/plugins/shikiCodeblocks.desktop/components/Code.tsx
index ce6a705..ce6a705 100644
--- a/src/plugins/shikiCodeblocks/components/Code.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/components/Code.tsx
diff --git a/src/plugins/shikiCodeblocks/components/CopyButton.tsx b/src/plugins/shikiCodeblocks.desktop/components/CopyButton.tsx
index 153b3cd..153b3cd 100644
--- a/src/plugins/shikiCodeblocks/components/CopyButton.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/components/CopyButton.tsx
diff --git a/src/plugins/shikiCodeblocks/components/Header.tsx b/src/plugins/shikiCodeblocks.desktop/components/Header.tsx
index 320dde9..320dde9 100644
--- a/src/plugins/shikiCodeblocks/components/Header.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/components/Header.tsx
diff --git a/src/plugins/shikiCodeblocks/components/Highlighter.tsx b/src/plugins/shikiCodeblocks.desktop/components/Highlighter.tsx
index dd14019..dd14019 100644
--- a/src/plugins/shikiCodeblocks/components/Highlighter.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/components/Highlighter.tsx
diff --git a/src/plugins/shikiCodeblocks/devicon.css b/src/plugins/shikiCodeblocks.desktop/devicon.css
index ed1014e..ed1014e 100644
--- a/src/plugins/shikiCodeblocks/devicon.css
+++ b/src/plugins/shikiCodeblocks.desktop/devicon.css
diff --git a/src/plugins/shikiCodeblocks/hooks/useCopyCooldown.ts b/src/plugins/shikiCodeblocks.desktop/hooks/useCopyCooldown.ts
index 414500b..414500b 100644
--- a/src/plugins/shikiCodeblocks/hooks/useCopyCooldown.ts
+++ b/src/plugins/shikiCodeblocks.desktop/hooks/useCopyCooldown.ts
diff --git a/src/plugins/shikiCodeblocks/hooks/useShikiSettings.ts b/src/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.ts
index 22954ce..22954ce 100644
--- a/src/plugins/shikiCodeblocks/hooks/useShikiSettings.ts
+++ b/src/plugins/shikiCodeblocks.desktop/hooks/useShikiSettings.ts
diff --git a/src/plugins/shikiCodeblocks/hooks/useTheme.ts b/src/plugins/shikiCodeblocks.desktop/hooks/useTheme.ts
index fae5796..fae5796 100644
--- a/src/plugins/shikiCodeblocks/hooks/useTheme.ts
+++ b/src/plugins/shikiCodeblocks.desktop/hooks/useTheme.ts
diff --git a/src/plugins/shikiCodeblocks/index.ts b/src/plugins/shikiCodeblocks.desktop/index.ts
index 58e55b4..58e55b4 100644
--- a/src/plugins/shikiCodeblocks/index.ts
+++ b/src/plugins/shikiCodeblocks.desktop/index.ts
diff --git a/src/plugins/shikiCodeblocks/previewExample.tsx b/src/plugins/shikiCodeblocks.desktop/previewExample.tsx
index 508153b..508153b 100644
--- a/src/plugins/shikiCodeblocks/previewExample.tsx
+++ b/src/plugins/shikiCodeblocks.desktop/previewExample.tsx
diff --git a/src/plugins/shikiCodeblocks/settings.ts b/src/plugins/shikiCodeblocks.desktop/settings.ts
index f9fd3cc..f9fd3cc 100644
--- a/src/plugins/shikiCodeblocks/settings.ts
+++ b/src/plugins/shikiCodeblocks.desktop/settings.ts
diff --git a/src/plugins/shikiCodeblocks/shiki.css b/src/plugins/shikiCodeblocks.desktop/shiki.css
index 8674147..8674147 100644
--- a/src/plugins/shikiCodeblocks/shiki.css
+++ b/src/plugins/shikiCodeblocks.desktop/shiki.css
diff --git a/src/plugins/shikiCodeblocks/types.ts b/src/plugins/shikiCodeblocks.desktop/types.ts
index fb4a821..fb4a821 100644
--- a/src/plugins/shikiCodeblocks/types.ts
+++ b/src/plugins/shikiCodeblocks.desktop/types.ts
diff --git a/src/plugins/shikiCodeblocks/utils/color.ts b/src/plugins/shikiCodeblocks.desktop/utils/color.ts
index e74ec52..e74ec52 100644
--- a/src/plugins/shikiCodeblocks/utils/color.ts
+++ b/src/plugins/shikiCodeblocks.desktop/utils/color.ts
diff --git a/src/plugins/shikiCodeblocks/utils/createStyle.ts b/src/plugins/shikiCodeblocks.desktop/utils/createStyle.ts
index 734f7dc..734f7dc 100644
--- a/src/plugins/shikiCodeblocks/utils/createStyle.ts
+++ b/src/plugins/shikiCodeblocks.desktop/utils/createStyle.ts
diff --git a/src/plugins/shikiCodeblocks/utils/misc.ts b/src/plugins/shikiCodeblocks.desktop/utils/misc.ts
index e0c5263..e0c5263 100644
--- a/src/plugins/shikiCodeblocks/utils/misc.ts
+++ b/src/plugins/shikiCodeblocks.desktop/utils/misc.ts