fix: oneclient building (#377)
Fixes a bunch of ts errors that stop it from building. Their are still more but I cannot fix them currently
This commit is contained in:
parent
3e06a33c6d
commit
6ef5e6354e
10 changed files with 7 additions and 13 deletions
|
|
@ -6,7 +6,7 @@ import { useCommand } from '@onelauncher/common';
|
|||
import { Button, Popup } from '@onelauncher/common/components';
|
||||
import { Link, useNavigate } from '@tanstack/react-router';
|
||||
import { Window } from '@tauri-apps/api/window';
|
||||
import { MinusIcon, Settings01Icon, Settings02Icon, SquareIcon, XCloseIcon } from '@untitled-theme/icons-react';
|
||||
import { MinusIcon, Settings02Icon, SquareIcon, XCloseIcon } from '@untitled-theme/icons-react';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
import { AccountAvatar } from './AccountAvatar';
|
||||
import { AccountPopup } from './overlay/AccountPopup';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import type { useSettings } from '@/hooks/useSettings';
|
||||
import { Switch } from '@onelauncher/common/components';
|
||||
|
||||
type BooleanSetting = [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { MinecraftCredentials } from '@/bindings.gen';
|
||||
import { bindings } from '@/main';
|
||||
import { useCommand, useCommandMut } from '@onelauncher/common';
|
||||
import { useCommand } from '@onelauncher/common';
|
||||
import { Button } from '@onelauncher/common/components';
|
||||
import { Link } from '@tanstack/react-router';
|
||||
import { Pencil01Icon, PlusIcon, Settings01Icon, Trash01Icon } from '@untitled-theme/icons-react';
|
||||
|
|
@ -43,7 +43,7 @@ export function AccountPopup() {
|
|||
<AccountEntry
|
||||
loggedIn
|
||||
onClick={() => { }}
|
||||
onDelete={() => deleteUser(defaultUser.data)}
|
||||
onDelete={() => deleteUser(defaultUser.data as MinecraftCredentials)}
|
||||
user={defaultUser.data}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { ClusterModel, ProfileUpdate, SettingProfileModel, Settings } from '@/bindings.gen';
|
||||
import type { ClusterModel, ProfileUpdate, Settings } from '@/bindings.gen';
|
||||
import { bindings } from '@/main';
|
||||
import { useCommandSuspense } from '@onelauncher/common';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { SheetPage } from '@/components';
|
||||
import SettingsRow from '@/components/SettingsRow';
|
||||
import { useClusterProfile } from '@/hooks/useSettings';
|
||||
import { bindings } from '@/main';
|
||||
import { Switch, TextField } from '@onelauncher/common/components';
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { Database01Icon, FilePlus02Icon, FileX02Icon, LayoutTopIcon, Maximize01Icon, ParagraphWrapIcon, XIcon } from '@untitled-theme/icons-react';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
import SettingsRow from '@/components/SettingsRow';
|
||||
import SettingsSwitch from '@/components/SettingSwitch';
|
||||
import { useSettings } from '@/hooks/useSettings';
|
||||
import { bindings } from '@/main';
|
||||
import { THEMES } from '@/utils/theming';
|
||||
import { Switch } from '@onelauncher/common/components';
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { Monitor01Icon, PackageIcon, Speedometer04Icon } from '@untitled-theme/icons-react';
|
||||
import Sidebar from './route';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import SettingsSwitch from '@/components/SettingSwitch';
|
|||
import { useSettings } from '@/hooks/useSettings';
|
||||
import { bindings } from '@/main';
|
||||
// import useSettings from '@/hooks/useSettings';
|
||||
import { Button, Switch } from '@onelauncher/common/components';
|
||||
import { Button } from '@onelauncher/common/components';
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { dataDir, join } from '@tauri-apps/api/path';
|
||||
import { FolderIcon, Link03Icon, LinkExternal01Icon } from '@untitled-theme/icons-react';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { JSX } from 'react';
|
||||
import { createFileRoute, Outlet, useNavigate, useRouterState } from '@tanstack/react-router';
|
||||
import { Brush01Icon, CodeSnippet02Icon, MessageTextSquare01Icon, RefreshCcw02Icon, Rocket02Icon, Sliders04Icon, Users01Icon } from '@untitled-theme/icons-react';
|
||||
import { Brush01Icon, CodeSnippet02Icon, MessageTextSquare01Icon, RefreshCcw02Icon, Rocket02Icon, Sliders04Icon } from '@untitled-theme/icons-react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
export const Route = createFileRoute('/app/settings')({
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import type { PropsWithChildren } from 'react';
|
||||
import Logo from '@/assets/logos/Logo.svg';
|
||||
import LauncherLogo from '@/assets/logos/oneclient.svg?react';
|
||||
import { LoaderSuspense, NavbarButton } from '@/components';
|
||||
import { GameBackground } from '@/components/GameBackground';
|
||||
import { Stepper } from '@/components/Stepper';
|
||||
import { bindings } from '@/main';
|
||||
import useAppShellStore from '@/stores/appShellStore';
|
||||
import { useCommandSuspense } from '@onelauncher/common';
|
||||
import { Button } from '@onelauncher/common/components';
|
||||
import { createFileRoute, Link, Outlet } from '@tanstack/react-router';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { PackageCategories, PackageModCategory, PackageType, Provider } from '@/bindings.gen';
|
||||
import type { PackageCategories } from '@/bindings.gen';
|
||||
|
||||
export const BROWSER_VIEWS: Array<string> = ['grid', 'list'] as const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue