Reporter: Properly implement reporter build of Vencord; Test more plugins; Fix running in wrong pages

This commit is contained in:
Nuckyz 2024-05-30 04:44:13 -03:00
parent 892de53603
commit 9a9c1b0487
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
19 changed files with 184 additions and 145 deletions

View file

@ -20,7 +20,7 @@ import "./shiki.css";
import { enableStyle } from "@api/Styles";
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import definePlugin, { ReporterTestable } from "@utils/types";
import previewExampleText from "file://previewExample.tsx";
import { shiki } from "./api/shiki";
@ -34,6 +34,9 @@ export default definePlugin({
name: "ShikiCodeblocks",
description: "Brings vscode-style codeblocks into Discord, powered by Shiki",
authors: [Devs.Vap],
reporterTestable: ReporterTestable.Patches,
settings,
patches: [
{
find: "codeBlock:{react(",
@ -66,7 +69,6 @@ export default definePlugin({
isPreview: true,
tempSettings,
}),
settings,
// exports
shiki,