style: Sort imports

This commit is contained in:
Vendicated 2022-10-22 18:18:41 +02:00
parent a7dbd73547
commit 61fd38d6d9
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
57 changed files with 133 additions and 114 deletions

View file

@ -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",

View file

@ -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 {

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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;

View file

@ -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;

View file

@ -16,13 +16,14 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import definePlugin from "../utils/types";
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 { Devs } from "../utils/constants";
import { lazyWebpack } from "../utils/misc";
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"]));
const isMac = navigator.platform.includes("Mac"); // bruh

View file

@ -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 {

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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;

View file

@ -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"]));

View file

@ -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) {

View file

@ -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

View file

@ -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 { ApplicationCommandInputType, sendBotMessage } from "../api/Commands";
import { Devs } from "../utils/constants";
import { PartialDeep } from "type-fest";
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 definePlugin from "../utils/types";
import { filters } from "../webpack";
import { FluxDispatcher } from "../webpack/common";
interface Album {

View file

@ -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",

View file

@ -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",

View file

@ -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 =

View file

@ -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˘▰)",

View file

@ -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;

View file

@ -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";

View file

@ -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",