From 5454a41243139c22470b4e3c549b8d8bc06f5699 Mon Sep 17 00:00:00 2001 From: V Date: Mon, 25 Sep 2023 04:27:16 +0200 Subject: [PATCH 1/6] update issue templates --- .github/ISSUE_TEMPLATE/blank.yml | 10 ++++++++++ .github/ISSUE_TEMPLATE/config.yml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/blank.yml diff --git a/.github/ISSUE_TEMPLATE/blank.yml b/.github/ISSUE_TEMPLATE/blank.yml new file mode 100644 index 000000000..ba2b15b0e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/blank.yml @@ -0,0 +1,10 @@ +name: Blank Issue +description: Create a blank issue. ALWAYS FIRST USE OUR SUPPORT CHANNEL! ONLY USE THIS FORM IF YOU ARE A CONTRIBUTOR OR WERE TOLD TO DO SO IN THE SUPPORT CHANNEL. + +body: + - type: textarea + id: content + attributes: + label: Content + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 24b32fe38..bc5d97662 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,4 +1,4 @@ -blank_issues_enabled: true +blank_issues_enabled: false contact_links: - name: Vencord Support Server url: https://discord.gg/D9uwnFnqmd From da7f0cfff652b74496e20225854e20b0954ed008 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 26 Sep 2023 01:38:46 +0200 Subject: [PATCH 2/6] PluginModal: Fix cancel button being white on white in light theme --- src/components/PluginSettings/PluginModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PluginSettings/PluginModal.tsx b/src/components/PluginSettings/PluginModal.tsx index 78f3c9db7..d8b949066 100644 --- a/src/components/PluginSettings/PluginModal.tsx +++ b/src/components/PluginSettings/PluginModal.tsx @@ -238,7 +238,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti {isRegexRules && renderFindError(rule.find)} From 4facc3cad70fed86828ce7700e8fe11b3504bc0f Mon Sep 17 00:00:00 2001 From: V Date: Wed, 27 Sep 2023 04:13:40 +0200 Subject: [PATCH 6/6] webContextMenus: support pasting images --- src/plugins/webContextMenus.web/index.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/plugins/webContextMenus.web/index.ts b/src/plugins/webContextMenus.web/index.ts index 4cdbcd984..26ae19c5d 100644 --- a/src/plugins/webContextMenus.web/index.ts +++ b/src/plugins/webContextMenus.web/index.ts @@ -218,10 +218,19 @@ export default definePlugin({ }, async paste() { - const text = await navigator.clipboard.readText(); + const clip = (await navigator.clipboard.read())[0]; + if (!clip) return; const data = new DataTransfer(); - data.setData("text/plain", text); + for (const type of clip.types) { + if (type === "image/png") { + const file = new File([await clip.getType(type)], "unknown.png", { type }); + data.items.add(file); + } else if (type === "text/plain") { + const blob = await clip.getType(type); + data.setData(type, await blob.text()); + } + } document.dispatchEvent( new ClipboardEvent("paste", {