Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@
"devDependencies": {
"@sveltejs/adapter-static": "3.0.10",
"@sveltejs/kit": "2.70.1",
"@sveltejs/vite-plugin-svelte": "7.1.2",
"@tailwindcss/vite": "4.3.1",
"@tauri-apps/cli": "2.11.3",
"@types/node": "26.0.0",
"svelte": "5.55.7",
"svelte-check": "4.6.0",
"tailwindcss": "4.3.1",
"@sveltejs/vite-plugin-svelte": "7.2.0",
"@tailwindcss/vite": "4.3.3",
"@tauri-apps/cli": "2.11.4",
"@types/node": "26.1.2",
"svelte": "5.56.8",
"svelte-check": "4.7.4",
"tailwindcss": "4.3.3",
"tw-animate-css": "1.4.0",
"typescript": "6.0.3",
"vite": "8.0.16"
"vite": "8.1.5"
},
"optionalDependencies": {
"@rollup/rollup-darwin-arm64": "^4.59.0",
Expand Down
4 changes: 2 additions & 2 deletions app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ reqwest = { version = "0.13.2", features = [
"form",
] }
tokio = { version = "1.50.0", features = ["process"] }
base64 = "0.22.1"
base64 = "0.23.0"
image = "0.25.10"
uuid = { version = "1.23.0", features = ["v4"] }
sha1 = "0.11.0"
Expand All @@ -53,7 +53,7 @@ async_zip = { version = "0.0.18", features = [
"deflate64",
] }
tokio-util = { version = "0.7.18", features = ["compat"] }
sysinfo = "0.38.4"
sysinfo = "0.39.0"
futures-util = "0.3.32"

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
Expand Down
8 changes: 4 additions & 4 deletions app/src/lib/tauri/account.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface CapeData {
url: string;
}

const account_list_ = async (): Promise<
const account_list_call = async (): Promise<
Record<string, ProfileInfo | null> | undefined
> => {
try {
Expand All @@ -62,7 +62,7 @@ const account_list_ = async (): Promise<
};

export const account_list = create_data_state(
account_list_,
account_list_call,
UpdateType.Accounts
);

Expand Down Expand Up @@ -162,15 +162,15 @@ export const account_remove_skin = async (id: string) => {
return undefined;
};

const account_list_skins_ = async (): Promise<SkinData[] | undefined> => {
const account_list_skins_call = async (): Promise<SkinData[] | undefined> => {
try {
return await invoke('account_list_skins');
} catch {
return undefined;
}
};
export const account_list_skins = create_data_state(
account_list_skins_,
account_list_skins_call,
UpdateType.AccountSkins
);

Expand Down
8 changes: 4 additions & 4 deletions app/src/lib/tauri/home.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface PlayHistoryFavorite {
quick_play?: QuickPlayInfo;
}

const profile_history_list_ = async (): Promise<
const profile_history_list_call = async (): Promise<
PlayHistoryFavorite[] | undefined
> => {
try {
Expand All @@ -18,11 +18,11 @@ const profile_history_list_ = async (): Promise<
}
};
export const profile_history_list = create_data_state(
profile_history_list_,
profile_history_list_call,
UpdateType.Profiles
);

const profile_favorites_list_ = async (): Promise<
const profile_favorites_list_call = async (): Promise<
PlayHistoryFavorite[] | undefined
> => {
try {
Expand All @@ -32,7 +32,7 @@ const profile_favorites_list_ = async (): Promise<
}
};
export const profile_favorites_list = create_data_state(
profile_favorites_list_,
profile_favorites_list_call,
UpdateType.Profiles
);

Expand Down
4 changes: 2 additions & 2 deletions app/src/lib/tauri/instance.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export interface InstanceInfo {
loader_version?: string;
}

const instance_list_ = async (): Promise<InstanceInfo[] | undefined> => {
const instance_list_call = async (): Promise<InstanceInfo[] | undefined> => {
try {
return await invoke('instance_list');
} catch {
return undefined;
}
};
export const instance_list = create_data_state(
instance_list_,
instance_list_call,
UpdateType.Instances
);

Expand Down
7 changes: 5 additions & 2 deletions app/src/lib/tauri/offline.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import { toast } from 'svelte-sonner';
import { browser } from '$app/environment';
import { listen } from '@tauri-apps/api/event';

const is_offline_ = async () => {
const is_offline_call = async () => {
try {
return await invoke<boolean>('is_offline');
} catch {
return undefined;
}
};
export const is_offline = create_data_state(is_offline_, UpdateType.Offline);
export const is_offline = create_data_state(
is_offline_call,
UpdateType.Offline
);

export const try_reconnect = async () => {
try {
Expand Down
8 changes: 4 additions & 4 deletions app/src/lib/tauri/profile.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ export const profile_remove = async (profile: string) => {
return undefined;
};

const profile_list_ = async (): Promise<Profile[] | undefined> => {
const profile_list_call = async (): Promise<Profile[] | undefined> => {
try {
return await invoke('profile_list');
} catch {
return undefined;
}
};
export const profile_list = create_data_state(
profile_list_,
profile_list_call,
UpdateType.Profiles
);

Expand Down Expand Up @@ -380,9 +380,9 @@ if (browser) {
id
});
} else {
const message_ = check_message.get(id);
const message_content = check_message.get(id);
check_message.delete(id);
toast.success(message_ ?? '', {
toast.success(message_content ?? '', {
cancel: undefined,
duration: undefined,
id
Expand Down
4 changes: 2 additions & 2 deletions app/src/lib/tauri/settings.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export interface MinecraftSettings {
jvm_settings: JvmSettings;
}

const settings_get_ = async (): Promise<Settings | undefined> => {
const settings_get_call = async (): Promise<Settings | undefined> => {
try {
return await invoke('settings_get');
} catch {
return undefined;
}
};
export const settings_get = create_data_state(
settings_get_,
settings_get_call,
UpdateType.Settings
);

Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

glibPostInstallHook
gappsWrapperArgsHook
wrapGAppsHook
wrapGApp "$out/bin/proton"
'';
};
}
Expand Down
Loading
Loading