chore: lint

This commit is contained in:
HorizonCode committed 2026-05-26 14:46:29 +02:00
1 parent f2d8056cfd
commit cfb4c8a611
2 files changed
+31 -34

No files matched your search

+31 -31
View File
@@ -155,7 +155,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) { if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({ sileo.error({
title: 'Uhh...', title: 'Uhh...',
description: 'Dropped file is not a valid theme file.' description: 'Dropped file is not a valid theme file.',
}); });
return; return;
} }
@@ -163,7 +163,7 @@
if (!importResult.success || !importResult.themeInfo) { if (!importResult.success || !importResult.themeInfo) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.' description: importResult.error || 'An unknown error occurred.',
}); });
return; return;
} }
@@ -211,7 +211,7 @@
sileo.error({ sileo.error({
title: 'Hmm...', title: 'Hmm...',
description: description:
'The selected folder is not a valid osu! installation folder. Please select the correct folder.' 'The selected folder is not a valid osu! installation folder. Please select the correct folder.',
}); });
return; return;
} }
@@ -220,7 +220,7 @@
await $userSettings.save(); await $userSettings.save();
sileo.success({ sileo.success({
title: 'Yay!', title: 'Yay!',
description: 'osu! installation path set successfully.' description: 'osu! installation path set successfully.',
}); });
const beatmapSetCount = await getBeatmapSetsCount(selectedPath); const beatmapSetCount = await getBeatmapSetsCount(selectedPath);
@@ -252,7 +252,7 @@
sileo.error({ sileo.error({
title: 'Hold on a second!', title: 'Hold on a second!',
description: description:
'osu! is currently running, please exit osu! before launching via EZPPLauncher!' 'osu! is currently running, please exit osu! before launching via EZPPLauncher!',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -261,7 +261,7 @@
if (!$osuBuild) { if (!$osuBuild) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'There was an issue detecting your installed osu! version' description: 'There was an issue detecting your installed osu! version',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -274,7 +274,7 @@
if (!validFolder) { if (!validFolder) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Your selected osu! installation folder is not valid.' description: 'Your selected osu! installation folder is not valid.',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -284,7 +284,7 @@
if (!(await hasWMCTRL())) { if (!(await hasWMCTRL())) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'wmctrl seems to be missing, please install via AUR.' description: 'wmctrl seems to be missing, please install via AUR.',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -292,7 +292,7 @@
if (!(await hasOsuWinello())) { if (!(await hasOsuWinello())) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'osu-winello seems to be missing, please install it.' description: 'osu-winello seems to be missing, please install it.',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -337,7 +337,7 @@
if (!streamInfo) { if (!streamInfo) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Failed to check for updates, maybe osu! is down?' description: 'Failed to check for updates, maybe osu! is down?',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -348,7 +348,7 @@
if (releaseStream === undefined) { if (releaseStream === undefined) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Failed to get osu! release stream.' description: 'Failed to get osu! release stream.',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -358,7 +358,7 @@
if (!releaseStream.toLowerCase().includes('stable')) { if (!releaseStream.toLowerCase().includes('stable')) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'You are not on the stable release stream, please switch to it.' description: 'You are not on the stable release stream, please switch to it.',
}); });
launching.set(false); launching.set(false);
return; return;
@@ -648,7 +648,7 @@
if (error.name === 'AbortError') { if (error.name === 'AbortError') {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Failed to launch.' description: 'Failed to launch.',
}); });
launching.set(false); launching.set(false);
launchError = { launchError = {
@@ -659,7 +659,7 @@
launchError = error; launchError = error;
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Failed to launch.' description: 'Failed to launch.',
}); });
launching.set(false); launching.set(false);
if ($trackingEnabled) umami.track('app_launch_fail', { error: err }); if ($trackingEnabled) umami.track('app_launch_fail', { error: err });
@@ -679,7 +679,7 @@
if (loginResult && loginResult.user) { if (loginResult && loginResult.user) {
sileo.success({ sileo.success({
title: 'Login successful!', title: 'Login successful!',
description: `Welcome back, ${loginResult.user.name}!` description: `Welcome back, ${loginResult.user.name}!`,
}); });
$userAuth.value('username').set(username); $userAuth.value('username').set(username);
@@ -691,7 +691,7 @@
} else { } else {
sileo.error({ sileo.error({
title: 'Login failed!', title: 'Login failed!',
description: 'Please check your username and password.' description: 'Please check your username and password.',
}); });
loginIsLoading = false; loginIsLoading = false;
} }
@@ -699,7 +699,7 @@
console.log(err); console.log(err);
sileo.error({ sileo.error({
title: 'Login failed!', title: 'Login failed!',
description: 'There was an issue connecting to the server. Please try again later.' description: 'There was an issue connecting to the server. Please try again later.',
}); });
loginIsLoading = false; loginIsLoading = false;
} }
@@ -742,7 +742,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) { if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({ sileo.error({
title: 'Uhh...', title: 'Uhh...',
description: 'Dropped file is not a valid theme file.' description: 'Dropped file is not a valid theme file.',
}); });
return; return;
} }
@@ -750,7 +750,7 @@
if (!importResult.success || !importResult.themeInfo) { if (!importResult.success || !importResult.themeInfo) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.' description: importResult.error || 'An unknown error occurred.',
}); });
return; return;
} }
@@ -767,7 +767,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) { if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({ sileo.error({
title: 'Uhh...', title: 'Uhh...',
description: 'Dropped file is not a valid theme file.' description: 'Dropped file is not a valid theme file.',
}); });
return; return;
} }
@@ -775,7 +775,7 @@
if (!importResult.success || !importResult.themeInfo) { if (!importResult.success || !importResult.themeInfo) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.' description: importResult.error || 'An unknown error occurred.',
}); });
return; return;
} }
@@ -808,7 +808,7 @@
if ($platform === 'windows' && fileName?.toLowerCase() !== 'opentabletdriver.daemon.exe') { if ($platform === 'windows' && fileName?.toLowerCase() !== 'opentabletdriver.daemon.exe') {
sileo.error({ sileo.error({
title: 'Wrong executable', title: 'Wrong executable',
description: 'Please select OpenTabletDriver.Daemon.exe' description: 'Please select OpenTabletDriver.Daemon.exe',
}); });
return; return;
} }
@@ -818,7 +818,7 @@
await $userSettings.save(); await $userSettings.save();
sileo.success({ sileo.success({
title: 'Yay!', title: 'Yay!',
description: 'OpenTabletDriver set successfully.' description: 'OpenTabletDriver set successfully.',
}); });
} }
}; };
@@ -919,7 +919,7 @@
if (!updateFile) { if (!updateFile) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'No update file found.' description: 'No update file found.',
}); });
$newVersion = undefined; $newVersion = undefined;
return; return;
@@ -1039,7 +1039,7 @@
if (!droppedTheme) { if (!droppedTheme) {
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'Failed to install theme.' description: 'Failed to install theme.',
}); });
return; return;
} }
@@ -1053,19 +1053,19 @@
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: description:
importResult.error || 'An unknown error occurred while importing your theme.' importResult.error || 'An unknown error occurred while importing your theme.',
}); });
return; return;
} }
sileo.success({ sileo.success({
title: 'Yay!', title: 'Yay!',
description: 'Theme imported successfully' description: 'Theme imported successfully',
}); });
} catch (err) { } catch (err) {
console.log(err); console.log(err);
sileo.error({ sileo.error({
title: 'Hmmm...', title: 'Hmmm...',
description: 'An unknown error occurred while importing your theme.' description: 'An unknown error occurred while importing your theme.',
}); });
} finally { } finally {
droppedTheme = undefined; droppedTheme = undefined;
@@ -1173,7 +1173,7 @@
sileo.success({ sileo.success({
title: 'Logout successful!', title: 'Logout successful!',
description: 'See you soon!', description: 'See you soon!',
fill: '#181825' fill: '#181825',
}); });
currentUser.set(undefined); currentUser.set(undefined);
currentUserInfo.set(undefined); currentUserInfo.set(undefined);
@@ -1847,13 +1847,13 @@
if (downloadThemeResult.error && downloadThemeResult.error.length > 0) { if (downloadThemeResult.error && downloadThemeResult.error.length > 0) {
sileo.error({ sileo.error({
title: 'Uhhm..', title: 'Uhhm..',
description: downloadThemeResult.error description: downloadThemeResult.error,
}); });
} }
} else { } else {
sileo.success({ sileo.success({
title: 'Yaay!', title: 'Yaay!',
description: 'Theme installed successfully!' description: 'Theme installed successfully!',
}); });
} }
} }
-3
View File
@@ -133,9 +133,6 @@
} }
if (!$firstStartup) { if (!$firstStartup) {
/* const launcherTheme = $userSettings.value('launcherTheme').get('default');
const them = THEMES.find((theme) => theme.name === launcherTheme);
if (them) theme.set(them); */
currentLoadingInfo.set('Checking osu installation path...'); currentLoadingInfo.set('Checking osu installation path...');
const validFolder = await isValidOsuFolder($osuInstallationPath); const validFolder = await isValidOsuFolder($osuInstallationPath);
if (!validFolder) { if (!validFolder) {