🔨 chore: reformat imports

Signed-off-by: Pauline <git@ethanlibs.co>
This commit is contained in:
Pauline 2024-09-15 06:03:48 +02:00
parent 4ad407c90b
commit eafd9eed58
No known key found for this signature in database
GPG key ID: 722BB181973296AE
42 changed files with 76 additions and 77 deletions

45
Cargo.lock generated
View file

@ -149,9 +149,9 @@ dependencies = [
[[package]]
name = "anyhow"
version = "1.0.87"
version = "1.0.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10f00e1f6e58a40e807377c75c6a7f97bf9044fab57816f2414e6f5f4499d7b8"
checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6"
[[package]]
name = "arbitrary"
@ -164,9 +164,9 @@ dependencies = [
[[package]]
name = "arboard"
version = "3.4.0"
version = "3.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fb4009533e8ff8f1450a5bcbc30f4242a1d34442221f72314bea1f5dc9c7f89"
checksum = "df099ccb16cd014ff054ac1bf392c67feeef57164b05c42f037cd40f5d4357f4"
dependencies = [
"clipboard-win",
"core-graphics 0.23.2",
@ -182,9 +182,9 @@ dependencies = [
[[package]]
name = "arrayref"
version = "0.3.8"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a"
checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
[[package]]
name = "arrayvec"
@ -315,9 +315,9 @@ dependencies = [
[[package]]
name = "async-process"
version = "2.2.4"
version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8a07789659a4d385b79b18b9127fc27e1a59e1e89117c78c5ea3b806f016374"
checksum = "63255f1dc2381611000436537bbedfe83183faa303a5a0edaf191edef06526bb"
dependencies = [
"async-channel",
"async-io",
@ -330,7 +330,6 @@ dependencies = [
"futures-lite",
"rustix",
"tracing",
"windows-sys 0.59.0",
]
[[package]]
@ -3511,7 +3510,7 @@ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
dependencies = [
"bitflags 2.6.0",
"libc",
"redox_syscall 0.5.3",
"redox_syscall 0.5.4",
]
[[package]]
@ -4341,9 +4340,9 @@ dependencies = [
[[package]]
name = "once_cell"
version = "1.19.0"
version = "1.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
checksum = "33ea5043e58958ee56f3e15a90aee535795cd7dfd319846288d93c5b57d85cbe"
[[package]]
name = "onelauncher"
@ -4741,7 +4740,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
dependencies = [
"cfg-if",
"libc",
"redox_syscall 0.5.3",
"redox_syscall 0.5.4",
"smallvec",
"windows-targets 0.52.6",
]
@ -5692,9 +5691,9 @@ dependencies = [
[[package]]
name = "redox_syscall"
version = "0.5.3"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853"
dependencies = [
"bitflags 2.6.0",
]
@ -6011,9 +6010,9 @@ dependencies = [
[[package]]
name = "rustix"
version = "0.38.36"
version = "0.38.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f55e80d50763938498dd5ebb18647174e0c76dc38c5505294bb224624f30f36"
checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
dependencies = [
"bitflags 2.6.0",
"errno",
@ -6621,7 +6620,7 @@ dependencies = [
"objc2-foundation",
"objc2-quartz-core",
"raw-window-handle",
"redox_syscall 0.5.3",
"redox_syscall 0.5.4",
"wasm-bindgen",
"web-sys",
"windows-sys 0.59.0",
@ -8194,9 +8193,9 @@ checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
[[package]]
name = "unicode-ident"
version = "1.0.12"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
[[package]]
name = "unicode-normalization"
@ -8209,9 +8208,9 @@ dependencies = [
[[package]]
name = "unicode-segmentation"
version = "1.11.0"
version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
[[package]]
name = "unicode-width"
@ -8645,7 +8644,7 @@ version = "1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "372d5b87f58ec45c384ba03563b03544dc5fadc3983e434b286913f5b4a9bb6d"
dependencies = [
"redox_syscall 0.5.3",
"redox_syscall 0.5.4",
"wasite",
"web-sys",
]

View file

@ -1,5 +1,5 @@
import { ErrorBoundary as Boundary, Match, Switch } from 'solid-js';
import type { ParentProps } from 'solid-js';
import { ErrorBoundary as Boundary, Match, Switch } from 'solid-js';
function ErrorBoundary(props: ParentProps) {
return (

View file

@ -1,5 +1,5 @@
import { OverlayScrollbarsComponent } from 'overlayscrollbars-solid';
import type { ParentProps } from 'solid-js';
import { OverlayScrollbarsComponent } from 'overlayscrollbars-solid';
function ScrollableContainer(props: ParentProps) {
return (

View file

@ -1,6 +1,6 @@
import type { JSX, ParentProps } from 'solid-js';
import { useLocation, useNavigate } from '@solidjs/router';
import { createEffect, For, splitProps } from 'solid-js';
import type { JSX, ParentProps } from 'solid-js';
type SidebarProps = ParentProps & {
base: string;

View file

@ -1,8 +1,8 @@
import type { JSX } from 'solid-js';
import { Window } from '@tauri-apps/api/window';
import { ChevronLeftIcon, Maximize02Icon, MinusIcon, XCloseIcon } from '@untitled-theme/icons-solid';
import useSettings from '~ui/hooks/useSettings';
import { onMount } from 'solid-js';
import type { JSX } from 'solid-js';
import Button from './base/Button';
import Modal, { createModal } from './overlay/Modal';

View file

@ -1,5 +1,5 @@
import { createEffect, createSignal, mergeProps, on, splitProps, untrack } from 'solid-js';
import type { Accessor, JSX, ParentProps } from 'solid-js';
import { createEffect, createSignal, mergeProps, on, splitProps, untrack } from 'solid-js';
import styles from './Button.module.scss';
type ButtonProps = JSX.ButtonHTMLAttributes<HTMLButtonElement> & ParentProps & {

View file

@ -1,5 +1,5 @@
import { createSignal, createUniqueId, onMount, splitProps } from 'solid-js';
import type { JSX } from 'solid-js';
import { createSignal, createUniqueId, onMount, splitProps } from 'solid-js';
import styles from './TextField.module.scss';
type TextFieldProps = {

View file

@ -1,8 +1,8 @@
import type { Ref } from '@solid-primitives/refs';
import type { OnUpdatedEventListenerArgs, OverlayScrollbars } from 'overlayscrollbars';
import { AlignBottom01Icon } from '@untitled-theme/icons-solid';
import { OverlayScrollbarsComponent, type OverlayScrollbarsComponentRef } from 'overlayscrollbars-solid';
import { createEffect, createMemo, createSignal, Index, Show, untrack } from 'solid-js';
import type { Ref } from '@solid-primitives/refs';
import type { OnUpdatedEventListenerArgs, OverlayScrollbars } from 'overlayscrollbars';
import Button from '../base/Button';
import styles from './FormattedLog.module.scss';

View file

@ -1,6 +1,6 @@
import type { ParentProps } from 'solid-js';
import { renderHighlightedString } from '@onelauncher/client';
import usePromptOpener from '~ui/hooks/usePromptOpener';
import type { ParentProps } from 'solid-js';
import styles from './Markdown.module.scss';
export type MarkdownProps = ParentProps & {

View file

@ -1,10 +1,10 @@
import type { Providers, SearchResult } from '@onelauncher/client/bindings';
import type { JSX } from 'solid-js';
import { ChevronDownIcon, Download01Icon, HeartIcon } from '@untitled-theme/icons-solid';
import useBrowser from '~ui/hooks/useBrowser';
import useSettings from '~ui/hooks/useSettings';
import { abbreviateNumber } from '~utils';
import { createSignal, For, Match, Show, Switch } from 'solid-js';
import type { Providers, SearchResult } from '@onelauncher/client/bindings';
import type { JSX } from 'solid-js';
import Button from '../base/Button';
interface SearchResultsContainerProps {

View file

@ -1,7 +1,7 @@
import type { Cluster } from '@onelauncher/client/bindings';
import { convertFileSrc } from '@tauri-apps/api/core';
import defaultCover from '~assets/images/default_instance_cover.jpg';
import { type JSX, type ParentProps, Show, splitProps } from 'solid-js';
import type { Cluster } from '@onelauncher/client/bindings';
import styles from './ClusterCover.module.scss';
type ClusterCoverProps = JSX.HTMLAttributes<HTMLImageElement> & {

View file

@ -1,9 +1,9 @@
import type { Cluster, Loader } from '@onelauncher/client/bindings';
import FabricImage from '~assets/logos/fabric.png';
import ForgeImage from '~assets/logos/forge.png';
import QuiltImage from '~assets/logos/quilt.png';
import VanillaImage from '~assets/logos/vanilla.png';
import { type JSX, splitProps } from 'solid-js';
import type { Cluster, Loader } from '@onelauncher/client/bindings';
export function getLoaderLogoSrc(loader: Cluster | Loader): string {
const loaderName = (typeof loader === 'string' ? loader : loader.meta.loader)?.toLowerCase() as Loader;

View file

@ -1,5 +1,5 @@
import { createEffect, createSignal, on, Show, splitProps } from 'solid-js';
import type { JSX } from 'solid-js';
import { createEffect, createSignal, on, Show, splitProps } from 'solid-js';
import steveSrc from '../../../assets/images/steve.png';
type PlayerHeadProps = JSX.IntrinsicElements['img'] & {

View file

@ -1,9 +1,9 @@
import { Portal } from 'solid-js/web';
import type {
Accessor,
ParentProps,
Setter,
} from 'solid-js';
import { Portal } from 'solid-js/web';
export type FullscreenOverlayProps = {
visible: Accessor<boolean>;

View file

@ -1,7 +1,3 @@
import { mergeRefs } from '@solid-primitives/refs';
import { createContext, createSignal, For, onCleanup, onMount, Show, splitProps, useContext } from 'solid-js';
import { createStore } from 'solid-js/store';
import { Transition } from 'solid-transition-group';
import type { MakeOptional } from '@onelauncher/client';
import type {
Context,
@ -9,6 +5,10 @@ import type {
ParentProps,
Ref,
} from 'solid-js';
import { mergeRefs } from '@solid-primitives/refs';
import { createContext, createSignal, For, onCleanup, onMount, Show, splitProps, useContext } from 'solid-js';
import { createStore } from 'solid-js/store';
import { Transition } from 'solid-transition-group';
import Button from '../base/Button';
import FullscreenOverlay from './FullscreenOverlay';

View file

@ -1,12 +1,12 @@
import { mergeRefs } from '@solid-primitives/refs';
import { createEffect } from 'solid-js';
import { Portal } from 'solid-js/web';
import type {
Accessor,
JSX,
ParentProps,
Setter,
} from 'solid-js';
import { mergeRefs } from '@solid-primitives/refs';
import { createEffect } from 'solid-js';
import { Portal } from 'solid-js/web';
export type PopupProps = Omit<Parameters<typeof Portal>[0], 'children'> & ParentProps & {
visible: Accessor<boolean>;

View file

@ -1,7 +1,7 @@
import type { MinecraftCredentials } from '@onelauncher/client/bindings';
import { useNavigate } from '@solidjs/router';
import { PlusIcon, Settings01Icon } from '@untitled-theme/icons-solid';
import { For, Show } from 'solid-js';
import type { MinecraftCredentials } from '@onelauncher/client/bindings';
import Button from '../../base/Button';
import PlayerHead from '../../game/PlayerHead';
import Popup, { type PopupProps } from '../Popup';

View file

@ -1,9 +1,9 @@
import type { MinecraftCredentials } from '@onelauncher/client/bindings';
import { LinkExternal01Icon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
import Button from '~ui/components/base/Button';
import useCommand, { tryResult } from '~ui/hooks/useCommand';
import { type Context, createContext, createSignal, Match, type ParentProps, type Resource, Switch, useContext } from 'solid-js';
import type { MinecraftCredentials } from '@onelauncher/client/bindings';
import Modal, { createModal, type ModalProps } from '../Modal';
interface AccountControllerContextFunc {

View file

@ -1,9 +1,9 @@
import type { CreateCluster } from '@onelauncher/client/bindings';
import { ArrowRightIcon, Server01Icon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
import Button from '~ui/components/base/Button';
import { type Accessor, type Context, createContext, createSignal, type JSX, type ParentProps, type Setter, Show, untrack, useContext } from 'solid-js';
import { createStore } from 'solid-js/store';
import type { CreateCluster } from '@onelauncher/client/bindings';
import HeaderImage from '../../../../assets/images/header.png';
import { createModal } from '../Modal';
import ClusterGameSetup from './ClusterGameSetup';

View file

@ -1,3 +1,4 @@
import type { Loader, VersionType } from '@onelauncher/client/bindings';
import { TextInputIcon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
import Checkbox from '~ui/components/base/Checkbox';
@ -8,7 +9,6 @@ import LoaderIcon from '~ui/components/game/LoaderIcon';
import useCommand from '~ui/hooks/useCommand';
import { formatVersionRelease, LOADERS } from '~utils';
import { createEffect, createSignal, For, Index, type JSX, onMount, Show, splitProps, untrack } from 'solid-js';
import type { Loader, VersionType } from '@onelauncher/client/bindings';
import { type ClusterStepProps, createClusterStep } from './ClusterCreationModal';
export default createClusterStep({

View file

@ -1,7 +1,7 @@
import type { IngressPayload, IngressType } from '@onelauncher/client/bindings';
import { PausableTimer } from '@onelauncher/client';
import { InfoCircleIcon } from '@untitled-theme/icons-solid';
import { type ComponentProps, createEffect, createSignal, type JSX, Match, Show, Switch } from 'solid-js';
import type { IngressPayload, IngressType } from '@onelauncher/client/bindings';
type NotificationComponentProps = IngressPayload & {
overlay: boolean;

View file

@ -1,3 +1,5 @@
import type { Cluster, ManagedPackage, PackageType, Providers, ProviderSearchQuery, ProviderSearchResults } from '@onelauncher/client/bindings';
import type { ModalProps } from '~ui/components/overlay/Modal';
import { useNavigate } from '@solidjs/router';
import { bridge } from '~imports';
import Button from '~ui/components/base/Button';
@ -5,8 +7,6 @@ import Dropdown from '~ui/components/base/Dropdown';
import Modal, { createModal } from '~ui/components/overlay/Modal';
import BrowserPackage from '~ui/pages/browser/BrowserPackage';
import { type Accessor, type Context, createContext, createEffect, createSignal, For, on, onMount, type ParentProps, type Setter, Show, untrack, useContext } from 'solid-js';
import type { Cluster, ManagedPackage, PackageType, Providers, ProviderSearchQuery, ProviderSearchResults } from '@onelauncher/client/bindings';
import type { ModalProps } from '~ui/components/overlay/Modal';
import { useRecentCluster } from './useCluster';
import useCommand, { tryResult } from './useCommand';

View file

@ -1,9 +1,9 @@
import type { Cluster } from '@onelauncher/client/bindings';
import { useNavigate } from '@solidjs/router';
import { bridge } from '~imports';
import Modal, { createModal } from '~ui/components/overlay/Modal';
import ClusterGame from '~ui/pages/cluster/ClusterGame';
import { type Accessor, type Context, createContext, createEffect, createSignal, type ParentProps, type ResourceReturn, Show, useContext } from 'solid-js';
import type { Cluster } from '@onelauncher/client/bindings';
import useCommand, { tryResult } from './useCommand';
const ClusterContext = createContext() as Context<ResourceReturn<Cluster>>;

View file

@ -1,5 +1,5 @@
import { createResource, type ResourceOptions, type ResourceReturn, type ResourceSource } from 'solid-js';
import type { Result } from '@onelauncher/client/bindings';
import { createResource, type ResourceOptions, type ResourceReturn, type ResourceSource } from 'solid-js';
type Command<R, E> = () => Promise<Result<R, E>>;

View file

@ -1,6 +1,6 @@
import type { BeforeLeaveEventArgs } from '@solidjs/router';
import { useBeforeLeave } from '@solidjs/router';
import { createSignal } from 'solid-js';
import type { BeforeLeaveEventArgs } from '@solidjs/router';
interface PreventLeaveContext {
continue: () => void;

View file

@ -1,7 +1,7 @@
import type { ParentProps } from 'solid-js';
import { useNavigate } from '@solidjs/router';
import useSettings from '~ui/hooks/useSettings';
import { OverlayScrollbarsComponent } from 'overlayscrollbars-solid';
import type { ParentProps } from 'solid-js';
import AnimatedRoutes from '../components/AnimatedRoutes';
import Navbar from '../components/Navbar';

View file

@ -1,3 +1,4 @@
import type { Cluster } from '@onelauncher/client/bindings';
import { useNavigate } from '@solidjs/router';
import {
DotsVerticalIcon,
@ -12,9 +13,8 @@ import { useClusterCreator } from '~ui/components/overlay/cluster/ClusterCreatio
import { useLaunchCluster, useRecentCluster } from '~ui/hooks/useCluster';
import useCommand from '~ui/hooks/useCommand';
import { formatAsDuration, upperFirst } from '~utils';
import { For, onMount, Show } from 'solid-js';
import type { Cluster } from '@onelauncher/client/bindings';
import { For, onMount, Show } from 'solid-js';
import BannerBackground from '../../assets/images/header.png';
import Button from '../components/base/Button';
import TextField from '../components/base/TextField';

View file

@ -1,10 +1,10 @@
import type { ManagedPackage } from '@onelauncher/client/bindings';
import { ChevronRightIcon } from '@untitled-theme/icons-solid';
import OneConfigLogo from '~assets/logos/oneconfig.svg?component-solid';
import Button from '~ui/components/base/Button';
import SearchResultsContainer from '~ui/components/content/SearchResults';
import useBrowser from '~ui/hooks/useBrowser';
import { onMount, Show } from 'solid-js';
import type { ManagedPackage } from '@onelauncher/client/bindings';
import { BrowserContent } from './BrowserRoot';
function BrowserMain() {

View file

@ -1,3 +1,4 @@
import type { Cluster, ManagedPackage, ManagedUser, ManagedVersion, Providers } from '@onelauncher/client/bindings';
import { A, type Params, Route, useSearchParams } from '@solidjs/router';
import { CalendarIcon, ChevronDownIcon, ClockRewindIcon, Download01Icon, File02Icon, HeartIcon, LinkExternal01Icon } from '@untitled-theme/icons-solid';
import SteveHead from '~assets/images/steve.png';
@ -15,7 +16,6 @@ import usePagination from '~ui/hooks/usePagination';
import usePromptOpener from '~ui/hooks/usePromptOpener';
import { abbreviateNumber, formatAsRelative } from '~utils';
import { createContext, createEffect, createSignal, For, Match, on, type ParentProps, Show, Switch, useContext } from 'solid-js';
import type { Cluster, ManagedPackage, ManagedUser, ManagedVersion, Providers } from '@onelauncher/client/bindings';
import { getLicenseUrl, getPackageUrl, upperFirst } from '../../../utils';
interface BrowserModParams extends Params {

View file

@ -1,3 +1,5 @@
import type { DetailedProcess } from '@onelauncher/client/bindings';
import type { UnlistenFn } from '@tauri-apps/api/event';
import { type Params, useSearchParams } from '@solidjs/router';
import { SlashOctagonIcon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
@ -11,8 +13,6 @@ import useClusterContext from '~ui/hooks/useCluster';
import useCommand from '~ui/hooks/useCommand';
import { createSignal, onCleanup, onMount } from 'solid-js';
import { render } from 'solid-js/web';
import type { DetailedProcess } from '@onelauncher/client/bindings';
import type { UnlistenFn } from '@tauri-apps/api/event';
interface ClusterGameParams extends Params {
process_uuid: string;

View file

@ -1,3 +1,4 @@
import type { ManagedPackage, Package, Providers } from '@onelauncher/client/bindings';
import UFuzzy from '@leeoniya/ufuzzy';
import { FilterFunnel01Icon, SearchMdIcon, Trash03Icon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
@ -10,7 +11,6 @@ import useBrowser from '~ui/hooks/useBrowser';
import useClusterContext from '~ui/hooks/useCluster';
import useCommand, { tryResult } from '~ui/hooks/useCommand';
import { createEffect, createResource, createSignal, For, Match, Show, Switch } from 'solid-js';
import type { ManagedPackage, Package, Providers } from '@onelauncher/client/bindings';
// TODO: Possibly optimise this as it has 2 cloned lists, and another containing only the names
function ClusterMods() {

View file

@ -1,3 +1,4 @@
import type { Cluster } from '@onelauncher/client/bindings';
import { useNavigate } from '@solidjs/router';
import * as dialog from '@tauri-apps/plugin-dialog';
import { open } from '@tauri-apps/plugin-shell';
@ -14,7 +15,6 @@ import useSettings from '~ui/hooks/useSettings';
import { formatAsDuration, upperFirst } from '~utils';
import { join } from 'pathe';
import { type Accessor, createSignal, type Setter, Show, untrack } from 'solid-js';
import type { Cluster } from '@onelauncher/client/bindings';
import Button from '../../components/base/Button';
import ClusterCover from '../../components/game/ClusterCover';
import LoaderIcon from '../../components/game/LoaderIcon';

View file

@ -1,3 +1,4 @@
import type { UnlistenFn } from '@tauri-apps/api/event';
import { type Navigator, Route, useIsRouting, useSearchParams } from '@solidjs/router';
import { EyeIcon, File06Icon, Globe04Icon, Image03Icon, PackagePlusIcon, Settings04Icon } from '@untitled-theme/icons-solid';
import { bridge } from '~imports';
@ -6,7 +7,6 @@ import useClusterContext, { ClusterProvider } from '~ui/hooks/useCluster';
import { tryResult } from '~ui/hooks/useCommand';
import { supportsMods } from '~utils';
import { createEffect, createResource, createSignal, onCleanup, onMount, type ParentProps, Show } from 'solid-js';
import type { UnlistenFn } from '@tauri-apps/api/event';
import AnimatedRoutes from '../../components/AnimatedRoutes';
import ErrorBoundary from '../../components/ErrorBoundary';
import Sidebar from '../../components/Sidebar';

View file

@ -1,3 +1,4 @@
import type { Cluster } from '@onelauncher/client/bindings';
import { useBeforeLeave } from '@solidjs/router';
import { bridge } from '~imports';
import ScrollableContainer from '~ui/components/ScrollableContainer';
@ -6,7 +7,6 @@ import useClusterContext from '~ui/hooks/useCluster';
import { tryResult } from '~ui/hooks/useCommand';
import useSettings from '~ui/hooks/useSettings';
import { type Accessor, Show } from 'solid-js';
import type { Cluster } from '@onelauncher/client/bindings';
import { createSetting, GameSettings, JvmSettings, LauncherSettings, ProcessSettings } from '../settings/game/SettingsMinecraft';
function ClusterSettings() {

View file

@ -1,3 +1,4 @@
import type { ImportType } from '@onelauncher/client/bindings';
import { Route, useBeforeLeave, useLocation, useNavigate } from '@solidjs/router';
import { ChevronLeftIcon, ChevronRightIcon } from '@untitled-theme/icons-solid';
import AnimatedRoutes from '~ui/components/AnimatedRoutes';
@ -5,7 +6,6 @@ import Button from '~ui/components/base/Button';
import useSettings from '~ui/hooks/useSettings';
import { setAsyncTimeout } from '~utils';
import { type Accessor, type Context, createContext, createEffect, createSignal, type JSX, on, type ParentProps, useContext } from 'solid-js';
import type { ImportType } from '@onelauncher/client/bindings';
import OnboardingComplete from './OnboardingComplete';
import OnboardingImport from './OnboardingImport';
import OnboardingLanguage, { type Language, LanguagesList } from './OnboardingLanguage';

View file

@ -1,3 +1,4 @@
import type { JavaVersion, JavaVersions, Memory, Resolution } from '@onelauncher/client/bindings';
import { ActivityIcon, CpuChip01Icon, Database01Icon, EyeIcon, FilePlus02Icon, FileX02Icon, LayoutTopIcon, Maximize01Icon, ParagraphWrapIcon, VariableIcon, XIcon } from '@untitled-theme/icons-solid';
import Button from '~ui/components/base/Button';
import TextField from '~ui/components/base/TextField';
@ -9,7 +10,6 @@ import Sidebar from '~ui/components/Sidebar';
import useSettings from '~ui/hooks/useSettings';
import { asEnvVariables } from '~utils';
import { type Accessor, createSignal, For, onMount, type Setter, Show, splitProps, untrack } from 'solid-js';
import type { JavaVersion, JavaVersions, Memory, Resolution } from '@onelauncher/client/bindings';
function SettingsMinecraft() {
return (

View file

@ -1,6 +1,6 @@
import type { Cluster, ImportType, License, Loader, PackageType, Providers, VersionType } from '@onelauncher/client/bindings';
import { DurationFormat } from '@formatjs/intl-durationformat';
import { open } from '@tauri-apps/plugin-shell';
import type { Cluster, ImportType, License, Loader, PackageType, Providers, VersionType } from '@onelauncher/client/bindings';
export function setAsyncTimeout(ms: number): Promise<void>;
export function setAsyncTimeout(callback: () => any, ms: number): Promise<void>;

View file

@ -1,12 +1,12 @@
import type { UserConfig } from 'vite';
import process from 'node:process';
import { sentryVitePlugin as sentry } from '@sentry/vite-plugin';
import unocss from 'unocss/vite';
import unocss from 'unocss/vite';
import { defineConfig, loadEnv } from 'vite';
import solid from 'vite-plugin-solid';
import solidSvg from 'vite-plugin-solid-svg';
import paths from 'vite-tsconfig-paths';
import type { UserConfig } from 'vite';
export default defineConfig(async ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd(), '') };

View file

@ -1,12 +1,12 @@
import type { PlausibleOptions as PlausibleTrackerOptions } from 'plausible-tracker';
import type { ProgramInfo } from '../types';
import Plausible from 'plausible-tracker';
import { createEffect, createSignal } from 'solid-js';
import { createMutable } from 'solid-js/store';
import type { PlausibleOptions as PlausibleTrackerOptions } from 'plausible-tracker';
import { PROGRAM_INFO } from '../bindings';
import { createPersistedMutable, useSolidStore } from '../library';
import { useDebugState } from './useDebug';
import type { ProgramInfo } from '../types';
/**
* Possible platform types for Plausible.

View file

@ -1,6 +1,6 @@
import type { StoreNode } from 'solid-js/store';
import { trackDeep } from '@solid-primitives/deep';
import { createEffect, createRoot } from 'solid-js';
import type { StoreNode } from 'solid-js/store';
export interface CreatePersistedMutableOpts<T> {
onSave?: (value: T) => T;

View file

@ -1,5 +1,5 @@
import { createEffect, createReaction, createRoot, createSignal, onCleanup, runWithOwner } from 'solid-js';
import type { Owner } from 'solid-js';
import { createEffect, createReaction, createRoot, createSignal, onCleanup, runWithOwner } from 'solid-js';
export interface Observer {
dispose: () => void;

View file

@ -1,3 +1,4 @@
import type { CheckedEnvironment } from '.';
import fs from 'node:fs/promises';
import { type } from 'node:os';
import process from 'node:process';
@ -5,7 +6,6 @@ import { consola } from 'consola';
import { execa } from 'execa';
import { join, resolve } from 'pathe';
import semver from 'semver';
import type { CheckedEnvironment } from '.';
export async function tauriUpdateKey(env: CheckedEnvironment): Promise<string | undefined> {
if (process.env.TAURI_SIGNING_PRIVATE_KEY)