aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-22 18:18:41 +0200
committerVendicated <vendicated@riseup.net>2022-10-22 18:18:41 +0200
commit61fd38d6d9170a9583c62366a2d4afa40507ce01 (patch)
tree50132ae08fb39b453bca0dbeeae311e12b2528ed /src/plugins
parenta7dbd73547104540218d4699fcf643fca727d2fc (diff)
downloadVencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.tar.gz
Vencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.tar.bz2
Vencord-61fd38d6d9170a9583c62366a2d4afa40507ce01.zip
style: Sort imports
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/STFU.ts2
-rw-r--r--src/plugins/anonymiseFileNames.ts2
-rw-r--r--src/plugins/apiCommands.ts2
-rw-r--r--src/plugins/banger.ts2
-rw-r--r--src/plugins/betterUploadButton.ts2
-rw-r--r--src/plugins/clearURLs/index.ts6
-rw-r--r--src/plugins/fxTwitter.ts2
-rw-r--r--src/plugins/interactionKeybinds.ts9
-rw-r--r--src/plugins/moreCommands.ts4
-rw-r--r--src/plugins/muteNewGuild.ts2
-rw-r--r--src/plugins/nitroBypass.ts8
-rw-r--r--src/plugins/noCanaryMessageLinks.ts2
-rw-r--r--src/plugins/noF1.ts2
-rw-r--r--src/plugins/noRPC.ts2
-rw-r--r--src/plugins/noTrack.ts2
-rw-r--r--src/plugins/petpet.ts4
-rw-r--r--src/plugins/pronoundb/components/PronounsChatComponent.tsx7
-rw-r--r--src/plugins/pronoundb/components/PronounsProfileWrapper.tsx4
-rw-r--r--src/plugins/pronoundb/utils.ts3
-rw-r--r--src/plugins/sendify.ts11
-rw-r--r--src/plugins/silentTyping.ts2
-rw-r--r--src/plugins/unindent.ts4
-rw-r--r--src/plugins/unminifyErrors.ts2
-rw-r--r--src/plugins/uwuify.ts2
-rw-r--r--src/plugins/vcDoubleClick.ts2
-rw-r--r--src/plugins/viewIcons.tsx2
-rw-r--r--src/plugins/webhookTags.ts2
27 files changed, 49 insertions, 45 deletions
diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts
index cfc207a..66392c8 100644
--- a/src/plugins/STFU.ts
+++ b/src/plugins/STFU.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "STFU",
diff --git a/src/plugins/anonymiseFileNames.ts b/src/plugins/anonymiseFileNames.ts
index e689a6d..5bae10a 100644
--- a/src/plugins/anonymiseFileNames.ts
+++ b/src/plugins/anonymiseFileNames.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin, { OptionType } from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin, { OptionType } from "../utils/types";
import { Settings } from "../Vencord";
enum Methods {
diff --git a/src/plugins/apiCommands.ts b/src/plugins/apiCommands.ts
index dbfdcd5..7b08b8a 100644
--- a/src/plugins/apiCommands.ts
+++ b/src/plugins/apiCommands.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "CommandsAPI",
diff --git a/src/plugins/banger.ts b/src/plugins/banger.ts
index 4ce4b23..59d9b42 100644
--- a/src/plugins/banger.ts
+++ b/src/plugins/banger.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin, { OptionType } from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin, { OptionType } from "../utils/types";
export default definePlugin({
name: "BANger",
diff --git a/src/plugins/betterUploadButton.ts b/src/plugins/betterUploadButton.ts
index 7589be8..52d8aed 100644
--- a/src/plugins/betterUploadButton.ts
+++ b/src/plugins/betterUploadButton.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "BetterUploadButton",
diff --git a/src/plugins/clearURLs/index.ts b/src/plugins/clearURLs/index.ts
index c760a90..be0b802 100644
--- a/src/plugins/clearURLs/index.ts
+++ b/src/plugins/clearURLs/index.ts
@@ -16,15 +16,15 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { defaultRules } from "./defaultRules";
import {
- addPreSendListener,
addPreEditListener,
+ addPreSendListener,
MessageObject,
- removePreSendListener,
removePreEditListener,
+ removePreSendListener,
} from "../../api/MessageEvents";
import definePlugin from "../../utils/types";
+import { defaultRules } from "./defaultRules";
// From lodash
const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
diff --git a/src/plugins/fxTwitter.ts b/src/plugins/fxTwitter.ts
index dac8136..45f9fb6 100644
--- a/src/plugins/fxTwitter.ts
+++ b/src/plugins/fxTwitter.ts
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { addPreSendListener, MessageObject, removePreSendListener } from "../api/MessageEvents";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
const re = /https?:\/\/twitter\.com(?=\/\w+?\/status\/)/g;
diff --git a/src/plugins/interactionKeybinds.ts b/src/plugins/interactionKeybinds.ts
index ee4e422..1d28847 100644
--- a/src/plugins/interactionKeybinds.ts
+++ b/src/plugins/interactionKeybinds.ts
@@ -16,12 +16,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
+import { Message } from "discord-types/general";
+
import { Devs } from "../utils/constants";
-import { FluxDispatcher as Dispatcher, ChannelStore, SelectedChannelStore, UserStore } from "../webpack/common";
-import { filters } from "../webpack";
import { lazyWebpack } from "../utils/misc";
-import { Message } from "discord-types/general";
+import definePlugin from "../utils/types";
+import { filters } from "../webpack";
+import { ChannelStore, FluxDispatcher as Dispatcher, SelectedChannelStore, UserStore } from "../webpack/common";
const MessageStore = lazyWebpack(filters.byProps(["getRawMessages"]));
diff --git a/src/plugins/moreCommands.ts b/src/plugins/moreCommands.ts
index 600cc24..a58993d 100644
--- a/src/plugins/moreCommands.ts
+++ b/src/plugins/moreCommands.ts
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
-import { ApplicationCommandInputType, OptionalMessageOption, sendBotMessage, findOption, RequiredMessageOption } from "../api/Commands";
+import { ApplicationCommandInputType, findOption, OptionalMessageOption, RequiredMessageOption,sendBotMessage } from "../api/Commands";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
function mock(input: string): string {
diff --git a/src/plugins/muteNewGuild.ts b/src/plugins/muteNewGuild.ts
index aa0844f..e4ca1d5 100644
--- a/src/plugins/muteNewGuild.ts
+++ b/src/plugins/muteNewGuild.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "MuteNewGuild",
diff --git a/src/plugins/nitroBypass.ts b/src/plugins/nitroBypass.ts
index 08d49f2..7fed9cd 100644
--- a/src/plugins/nitroBypass.ts
+++ b/src/plugins/nitroBypass.ts
@@ -16,12 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { addPreSendListener, addPreEditListener, removePreSendListener, removePreEditListener } from "../api/MessageEvents";
-import { findByProps } from "../webpack";
-import definePlugin, { OptionType } from "../utils/types";
+import { addPreEditListener, addPreSendListener, removePreEditListener,removePreSendListener } from "../api/MessageEvents";
import { Devs } from "../utils/constants";
-import { UserStore } from "../webpack/common";
+import definePlugin, { OptionType } from "../utils/types";
import { Settings } from "../Vencord";
+import { findByProps } from "../webpack";
+import { UserStore } from "../webpack/common";
export default definePlugin({
name: "NitroBypass",
diff --git a/src/plugins/noCanaryMessageLinks.ts b/src/plugins/noCanaryMessageLinks.ts
index 8c773e1..3ee95cd 100644
--- a/src/plugins/noCanaryMessageLinks.ts
+++ b/src/plugins/noCanaryMessageLinks.ts
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { addPreSendListener, MessageObject, removePreSendListener } from "../api/MessageEvents";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "NoCanaryMessageLinks",
diff --git a/src/plugins/noF1.ts b/src/plugins/noF1.ts
index 8613236..22e351a 100644
--- a/src/plugins/noF1.ts
+++ b/src/plugins/noF1.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "No F1",
diff --git a/src/plugins/noRPC.ts b/src/plugins/noRPC.ts
index fa3ff8a..ca82c2b 100644
--- a/src/plugins/noRPC.ts
+++ b/src/plugins/noRPC.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "No RPC",
diff --git a/src/plugins/noTrack.ts b/src/plugins/noTrack.ts
index be3dfe0..a86e0af 100644
--- a/src/plugins/noTrack.ts
+++ b/src/plugins/noTrack.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "NoTrack",
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts
index 652ebda..8f2462d 100644
--- a/src/plugins/petpet.ts
+++ b/src/plugins/petpet.ts
@@ -16,10 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ApplicationCommandOptionType, findOption, ApplicationCommandInputType, Argument, CommandContext } from "../api/Commands";
+import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext,findOption } from "../api/Commands";
import { Devs } from "../utils/constants";
+import { lazyWebpack,makeLazy } from "../utils/misc";
import definePlugin from "../utils/types";
-import { makeLazy, lazyWebpack } from "../utils/misc";
import { filters } from "../webpack";
const DRAFT_TYPE = 0;
diff --git a/src/plugins/pronoundb/components/PronounsChatComponent.tsx b/src/plugins/pronoundb/components/PronounsChatComponent.tsx
index c0b5a90..ec4de98 100644
--- a/src/plugins/pronoundb/components/PronounsChatComponent.tsx
+++ b/src/plugins/pronoundb/components/PronounsChatComponent.tsx
@@ -17,12 +17,13 @@
*/
import { Message } from "discord-types/general";
-import { fetchPronouns, formatPronouns } from "../utils";
+
import { classes, lazyWebpack, useAwaiter } from "../../../utils/misc";
-import { PronounMapping } from "../types";
+import { Settings } from "../../../Vencord";
import { filters } from "../../../webpack";
import { UserStore } from "../../../webpack/common";
-import { Settings } from "../../../Vencord";
+import { PronounMapping } from "../types";
+import { fetchPronouns, formatPronouns } from "../utils";
const styles: Record<string, string> = lazyWebpack(filters.byProps(["timestampInline"]));
diff --git a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx
index af2f84b..930d5a7 100644
--- a/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx
+++ b/src/plugins/pronoundb/components/PronounsProfileWrapper.tsx
@@ -16,10 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { UserStore } from "../../../webpack/common";
+import { classes,useAwaiter } from "../../../utils";
import { Settings } from "../../../Vencord";
+import { UserStore } from "../../../webpack/common";
import { PronounMapping, UserProfileProps } from "../types";
-import { useAwaiter, classes } from "../../../utils";
import { fetchPronouns, formatPronouns } from "../utils";
export default function PronounsProfileWrapper(props: UserProfileProps, pronounsComponent: JSX.Element) {
diff --git a/src/plugins/pronoundb/utils.ts b/src/plugins/pronoundb/utils.ts
index a9828d2..24bc3e2 100644
--- a/src/plugins/pronoundb/utils.ts
+++ b/src/plugins/pronoundb/utils.ts
@@ -17,9 +17,10 @@
*/
import gitHash from "git-hash";
-import { PronounsFormat } from ".";
+
import { debounce } from "../../utils";
import { Settings } from "../../Vencord";
+import { PronounsFormat } from ".";
import { PronounCode, PronounMapping, PronounsResponse } from "./types";
// A map of cached pronouns so the same request isn't sent twice
diff --git a/src/plugins/sendify.ts b/src/plugins/sendify.ts
index a43260a..d0c7af7 100644
--- a/src/plugins/sendify.ts
+++ b/src/plugins/sendify.ts
@@ -16,13 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
-import { lazyWebpack } from "../utils";
-import { filters } from "../webpack";
+import { Message } from "discord-types/general";
+import { PartialDeep } from "type-fest";
+
import { ApplicationCommandInputType, sendBotMessage } from "../api/Commands";
+import { lazyWebpack } from "../utils";
import { Devs } from "../utils/constants";
-import { PartialDeep } from "type-fest";
-import { Message } from "discord-types/general";
+import definePlugin from "../utils/types";
+import { filters } from "../webpack";
import { FluxDispatcher } from "../webpack/common";
interface Album {
diff --git a/src/plugins/silentTyping.ts b/src/plugins/silentTyping.ts
index 328ee74..1f79125 100644
--- a/src/plugins/silentTyping.ts
+++ b/src/plugins/silentTyping.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "SilentTyping",
diff --git a/src/plugins/unindent.ts b/src/plugins/unindent.ts
index ea5625e..0206095 100644
--- a/src/plugins/unindent.ts
+++ b/src/plugins/unindent.ts
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
-import { addPreSendListener, addPreEditListener, MessageObject, removePreSendListener, removePreEditListener } from "../api/MessageEvents";
+import { addPreEditListener, addPreSendListener, MessageObject, removePreEditListener,removePreSendListener } from "../api/MessageEvents";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "Unindent",
diff --git a/src/plugins/unminifyErrors.ts b/src/plugins/unminifyErrors.ts
index b3d31a4..f0ee77c 100644
--- a/src/plugins/unminifyErrors.ts
+++ b/src/plugins/unminifyErrors.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
let ERROR_CODES: any;
const CODES_URL =
diff --git a/src/plugins/uwuify.ts b/src/plugins/uwuify.ts
index 21ef093..9f4ac7e 100644
--- a/src/plugins/uwuify.ts
+++ b/src/plugins/uwuify.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { findOption, RequiredMessageOption } from "../api/Commands";
+import definePlugin from "../utils/types";
const endings = [
"owo", "UwU", ">w<", "^w^", "ā—wā—", "ā˜†wā˜†", "š—Øš˜„š—Ø", "(į—’į—Øį—•)", "(ā–°Ė˜vĖ˜ā–°)",
diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts
index e83e002..f2a33a4 100644
--- a/src/plugins/vcDoubleClick.ts
+++ b/src/plugins/vcDoubleClick.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
const timers = {} as Record<string, {
timeout?: NodeJS.Timeout;
diff --git a/src/plugins/viewIcons.tsx b/src/plugins/viewIcons.tsx
index a9796ed..77372cb 100644
--- a/src/plugins/viewIcons.tsx
+++ b/src/plugins/viewIcons.tsx
@@ -17,9 +17,9 @@
*/
import { Devs } from "../utils/constants";
-import definePlugin from "../utils/types";
import { lazyWebpack, makeLazy } from "../utils/misc";
import { ModalRoot, ModalSize, openModal } from "../utils/modal";
+import definePlugin from "../utils/types";
import { find } from "../webpack";
import { React } from "../webpack/common";
diff --git a/src/plugins/webhookTags.ts b/src/plugins/webhookTags.ts
index 88ce58b..adf261a 100644
--- a/src/plugins/webhookTags.ts
+++ b/src/plugins/webhookTags.ts
@@ -16,8 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import definePlugin from "../utils/types";
import { Devs } from "../utils/constants";
+import definePlugin from "../utils/types";
export default definePlugin({
name: "Webhook Tags",