Fix Lint
This commit is contained in:
parent
6b1c3a9445
commit
32b6d94bb6
8 changed files with 9 additions and 7 deletions
|
|
@ -38,6 +38,7 @@ export interface PluginData {
|
|||
name: string;
|
||||
description: string;
|
||||
tags: string[];
|
||||
searchTerms: string[];
|
||||
authors: Dev[];
|
||||
dependencies: string[];
|
||||
hasPatches: boolean;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import "./colorStyles.css";
|
|||
import { classNameFactory } from "@utils/css";
|
||||
import { findByCodeLazy } from "@webpack";
|
||||
import { ColorPicker, useMemo } from "@webpack/common";
|
||||
import type tinycolor from "tinycolor2";
|
||||
|
||||
// TinyColor is completely unmangled and it's duplicated in two modules! Fun!
|
||||
const TinyColor: tinycolor.Constructor = findByCodeLazy("this._gradientType=");
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ interface Uint8ArrayConstructorExtended extends Uint8ArrayConstructor {
|
|||
): Uint8ArrayExtended<ArrayBuffer>;
|
||||
}
|
||||
|
||||
function supportsToBase64(array: Uint8Array<ArrayBufferLike>): array is Uint8ArrayExtended<ArrayBufferLike> {
|
||||
function supportsToBase64(array: Uint8Array<ArrayBufferLike>): boolean {
|
||||
return "toBase64" in array && typeof array.toBase64 === "function";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import { find, findByCode, findByCodeLazy } from "@webpack";
|
|||
import { Alerts, ChannelStore, ContextMenuApi, FluxDispatcher, GuildStore, Menu, NavigationRouter, React, TabBar, TextInput, Tooltip, useMemo, useRef, useState } from "@webpack/common";
|
||||
|
||||
import { DBMessageRecord, deleteMessageIDB, deleteMessagesBulkIDB } from "../db";
|
||||
import { clearLogs, cl, settings } from "../index";
|
||||
import { cl, clearLogs, settings } from "../index";
|
||||
import { LoggedMessage, LoggedMessageJSON } from "../types";
|
||||
import { messageJsonToMessageClass } from "../utils";
|
||||
import { importLogs } from "../utils/settingsUtils";
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { chooseFile as chooseFileWeb } from "@utils/web";
|
|||
import { Toasts } from "@webpack/common";
|
||||
import { showSaveFilePicker } from "native-file-system-adapter";
|
||||
|
||||
import { Native, clearLogs } from "..";
|
||||
import { clearLogs,Native } from "..";
|
||||
import { addMessagesBulkIDB, iterateAllMessagesIDB } from "../db";
|
||||
import { LoggedMessageJSON } from "../types";
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ export const Packs = () => {
|
|||
flexGrow: 1
|
||||
}}>
|
||||
<CheckedTextInput
|
||||
value={addStickerUrl}
|
||||
initialValue={addStickerUrl}
|
||||
onChange={setAddStickerUrl}
|
||||
validate={(v: string) => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ export function ReplaceSettings({ appIds, update, save }: SettingsProps) {
|
|||
}
|
||||
<Heading className={`${Margins.top8} ${Margins.bottom8}`}>Application ID</Heading>
|
||||
<CheckedTextInput
|
||||
value={setting.appId}
|
||||
initialValue={setting.appId}
|
||||
onChange={async v => {
|
||||
onChange(v, i, "appId");
|
||||
}}
|
||||
|
|
@ -125,7 +125,7 @@ export function ReplaceSettings({ appIds, update, save }: SettingsProps) {
|
|||
<>
|
||||
<Heading className={`${Margins.top8} ${Margins.bottom8}`}>Stream URL (must be YouTube or Twitch)</Heading>
|
||||
<CheckedTextInput
|
||||
value={setting.newStreamUrl}
|
||||
initialValue={setting.newStreamUrl}
|
||||
onChange={async v => {
|
||||
onChange(v, i, "newStreamUrl");
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,6 @@ export async function installExt(id: string) {
|
|||
.catch(err => console.error(`Failed to extract extension ${id}`, err));
|
||||
}
|
||||
|
||||
// @ts-expect-error Electron 36 Deprecates session.defaultSession.loadExtension()
|
||||
// Electron 36 Deprecates session.defaultSession.loadExtension()
|
||||
session.defaultSession.extensions ? session.defaultSession.extensions.loadExtension(extDir) : session.defaultSession.loadExtension(extDir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue