aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Monaco.ts5
-rw-r--r--src/components/PluginSettings/components/SettingBooleanComponent.tsx2
-rw-r--r--src/components/PluginSettings/components/SettingNumericComponent.tsx2
-rw-r--r--src/components/PluginSettings/components/SettingSelectComponent.tsx2
-rw-r--r--src/components/PluginSettings/components/SettingSliderComponent.tsx2
-rw-r--r--src/components/PluginSettings/components/SettingTextComponent.tsx2
-rw-r--r--src/components/PluginSettings/components/index.ts2
-rw-r--r--src/components/Updater.tsx9
-rw-r--r--src/components/index.ts2
9 files changed, 15 insertions, 13 deletions
diff --git a/src/components/Monaco.ts b/src/components/Monaco.ts
index 6b01891..33f5545 100644
--- a/src/components/Monaco.ts
+++ b/src/components/Monaco.ts
@@ -16,11 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+import monacoHtml from "@fileContent/monacoWin.html";
+
import { IpcEvents } from "../utils";
import { debounce } from "../utils/debounce";
-import { find } from "../webpack/webpack";
-import monacoHtml from "@fileContent/monacoWin.html";
import { Queue } from "../utils/Queue";
+import { find } from "../webpack/webpack";
const queue = new Queue();
const setCss = debounce((css: string) => {
diff --git a/src/components/PluginSettings/components/SettingBooleanComponent.tsx b/src/components/PluginSettings/components/SettingBooleanComponent.tsx
index da5827b..99c1eae 100644
--- a/src/components/PluginSettings/components/SettingBooleanComponent.tsx
+++ b/src/components/PluginSettings/components/SettingBooleanComponent.tsx
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ISettingElementProps } from ".";
import { PluginOptionBoolean } from "../../../utils/types";
import { Forms, React, Select } from "../../../webpack/common";
+import { ISettingElementProps } from ".";
export function SettingBooleanComponent({ option, pluginSettings, id, onChange, onError }: ISettingElementProps<PluginOptionBoolean>) {
const def = pluginSettings[id] ?? option.default;
diff --git a/src/components/PluginSettings/components/SettingNumericComponent.tsx b/src/components/PluginSettings/components/SettingNumericComponent.tsx
index e154f67..01e72dc 100644
--- a/src/components/PluginSettings/components/SettingNumericComponent.tsx
+++ b/src/components/PluginSettings/components/SettingNumericComponent.tsx
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ISettingElementProps } from ".";
import { OptionType, PluginOptionNumber } from "../../../utils/types";
import { Forms, React, TextInput } from "../../../webpack/common";
+import { ISettingElementProps } from ".";
const MAX_SAFE_NUMBER = BigInt(Number.MAX_SAFE_INTEGER);
diff --git a/src/components/PluginSettings/components/SettingSelectComponent.tsx b/src/components/PluginSettings/components/SettingSelectComponent.tsx
index 3889c8e..ce35675 100644
--- a/src/components/PluginSettings/components/SettingSelectComponent.tsx
+++ b/src/components/PluginSettings/components/SettingSelectComponent.tsx
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ISettingElementProps } from ".";
import { PluginOptionSelect } from "../../../utils/types";
import { Forms, React, Select } from "../../../webpack/common";
+import { ISettingElementProps } from ".";
export function SettingSelectComponent({ option, pluginSettings, onChange, onError, id }: ISettingElementProps<PluginOptionSelect>) {
const def = pluginSettings[id] ?? option.options?.find(o => o.default)?.value;
diff --git a/src/components/PluginSettings/components/SettingSliderComponent.tsx b/src/components/PluginSettings/components/SettingSliderComponent.tsx
index 3910e8b..ff1c491 100644
--- a/src/components/PluginSettings/components/SettingSliderComponent.tsx
+++ b/src/components/PluginSettings/components/SettingSliderComponent.tsx
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ISettingElementProps } from ".";
import { PluginOptionSlider } from "../../../utils/types";
import { Forms, React, Slider } from "../../../webpack/common";
+import { ISettingElementProps } from ".";
export function makeRange(start: number, end: number, step = 1) {
const ranges: number[] = [];
diff --git a/src/components/PluginSettings/components/SettingTextComponent.tsx b/src/components/PluginSettings/components/SettingTextComponent.tsx
index 97bbd99..216a2a1 100644
--- a/src/components/PluginSettings/components/SettingTextComponent.tsx
+++ b/src/components/PluginSettings/components/SettingTextComponent.tsx
@@ -16,9 +16,9 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import { ISettingElementProps } from ".";
import { PluginOptionString } from "../../../utils/types";
import { Forms, React, TextInput } from "../../../webpack/common";
+import { ISettingElementProps } from ".";
export function SettingInputComponent({ option, pluginSettings, id, onChange, onError }: ISettingElementProps<PluginOptionString>) {
const [state, setState] = React.useState(pluginSettings[id] ?? option.default ?? null);
diff --git a/src/components/PluginSettings/components/index.ts b/src/components/PluginSettings/components/index.ts
index 6da4140..1712987 100644
--- a/src/components/PluginSettings/components/index.ts
+++ b/src/components/PluginSettings/components/index.ts
@@ -32,5 +32,5 @@ export interface ISettingElementProps<T extends PluginOptionBase> {
export * from "./SettingBooleanComponent";
export * from "./SettingNumericComponent";
export * from "./SettingSelectComponent";
-export * from "./SettingTextComponent";
export * from "./SettingSliderComponent";
+export * from "./SettingTextComponent";
diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx
index f4dedd7..21ae6a3 100644
--- a/src/components/Updater.tsx
+++ b/src/components/Updater.tsx
@@ -17,13 +17,14 @@
*/
import gitHash from "git-hash";
-import { changes, checkForUpdates, getRepo, rebuild, update, UpdateLogger, updateError, isOutdated, isNewer } from "../utils/updater";
-import { React, Forms, Button, Margins, Alerts, Card, Parser, Toasts } from "../webpack/common";
-import { Flex } from "./Flex";
+
import { classes, useAwaiter } from "../utils/misc";
-import { Link } from "./Link";
+import { changes, checkForUpdates, getRepo, isNewer,isOutdated, rebuild, update, updateError, UpdateLogger } from "../utils/updater";
+import { Alerts, Button, Card, Forms, Margins, Parser, React, Toasts } from "../webpack/common";
import ErrorBoundary from "./ErrorBoundary";
import { ErrorCard } from "./ErrorCard";
+import { Flex } from "./Flex";
+import { Link } from "./Link";
function withDispatcher(dispatcher: React.Dispatch<React.SetStateAction<boolean>>, action: () => any) {
return async () => {
diff --git a/src/components/index.ts b/src/components/index.ts
index 30dcea2..6f7ffba 100644
--- a/src/components/index.ts
+++ b/src/components/index.ts
@@ -16,6 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-export { default as Settings } from "./Settings";
export { default as PluginSettings } from "./PluginSettings";
+export { default as Settings } from "./Settings";
export { default as Updater } from "./Updater";