chore: lint

This commit is contained in:
2026-05-26 14:46:29 +02:00
parent f2d8056cfd
commit cfb4c8a611
2 changed files with 31 additions and 34 deletions
+31 -31
View File
@@ -155,7 +155,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({
title: 'Uhh...',
description: 'Dropped file is not a valid theme file.'
description: 'Dropped file is not a valid theme file.',
});
return;
}
@@ -163,7 +163,7 @@
if (!importResult.success || !importResult.themeInfo) {
sileo.error({
title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.'
description: importResult.error || 'An unknown error occurred.',
});
return;
}
@@ -211,7 +211,7 @@
sileo.error({
title: 'Hmm...',
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;
}
@@ -220,7 +220,7 @@
await $userSettings.save();
sileo.success({
title: 'Yay!',
description: 'osu! installation path set successfully.'
description: 'osu! installation path set successfully.',
});
const beatmapSetCount = await getBeatmapSetsCount(selectedPath);
@@ -252,7 +252,7 @@
sileo.error({
title: 'Hold on a second!',
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);
return;
@@ -261,7 +261,7 @@
if (!$osuBuild) {
sileo.error({
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);
return;
@@ -274,7 +274,7 @@
if (!validFolder) {
sileo.error({
title: 'Hmmm...',
description: 'Your selected osu! installation folder is not valid.'
description: 'Your selected osu! installation folder is not valid.',
});
launching.set(false);
return;
@@ -284,7 +284,7 @@
if (!(await hasWMCTRL())) {
sileo.error({
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);
return;
@@ -292,7 +292,7 @@
if (!(await hasOsuWinello())) {
sileo.error({
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);
return;
@@ -337,7 +337,7 @@
if (!streamInfo) {
sileo.error({
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);
return;
@@ -348,7 +348,7 @@
if (releaseStream === undefined) {
sileo.error({
title: 'Hmmm...',
description: 'Failed to get osu! release stream.'
description: 'Failed to get osu! release stream.',
});
launching.set(false);
return;
@@ -358,7 +358,7 @@
if (!releaseStream.toLowerCase().includes('stable')) {
sileo.error({
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);
return;
@@ -648,7 +648,7 @@
if (error.name === 'AbortError') {
sileo.error({
title: 'Hmmm...',
description: 'Failed to launch.'
description: 'Failed to launch.',
});
launching.set(false);
launchError = {
@@ -659,7 +659,7 @@
launchError = error;
sileo.error({
title: 'Hmmm...',
description: 'Failed to launch.'
description: 'Failed to launch.',
});
launching.set(false);
if ($trackingEnabled) umami.track('app_launch_fail', { error: err });
@@ -679,7 +679,7 @@
if (loginResult && loginResult.user) {
sileo.success({
title: 'Login successful!',
description: `Welcome back, ${loginResult.user.name}!`
description: `Welcome back, ${loginResult.user.name}!`,
});
$userAuth.value('username').set(username);
@@ -691,7 +691,7 @@
} else {
sileo.error({
title: 'Login failed!',
description: 'Please check your username and password.'
description: 'Please check your username and password.',
});
loginIsLoading = false;
}
@@ -699,7 +699,7 @@
console.log(err);
sileo.error({
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;
}
@@ -742,7 +742,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({
title: 'Uhh...',
description: 'Dropped file is not a valid theme file.'
description: 'Dropped file is not a valid theme file.',
});
return;
}
@@ -750,7 +750,7 @@
if (!importResult.success || !importResult.themeInfo) {
sileo.error({
title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.'
description: importResult.error || 'An unknown error occurred.',
});
return;
}
@@ -767,7 +767,7 @@
if (!firstFile.endsWith('.ezpplauncher-theme')) {
sileo.error({
title: 'Uhh...',
description: 'Dropped file is not a valid theme file.'
description: 'Dropped file is not a valid theme file.',
});
return;
}
@@ -775,7 +775,7 @@
if (!importResult.success || !importResult.themeInfo) {
sileo.error({
title: 'Hmmm...',
description: importResult.error || 'An unknown error occurred.'
description: importResult.error || 'An unknown error occurred.',
});
return;
}
@@ -808,7 +808,7 @@
if ($platform === 'windows' && fileName?.toLowerCase() !== 'opentabletdriver.daemon.exe') {
sileo.error({
title: 'Wrong executable',
description: 'Please select OpenTabletDriver.Daemon.exe'
description: 'Please select OpenTabletDriver.Daemon.exe',
});
return;
}
@@ -818,7 +818,7 @@
await $userSettings.save();
sileo.success({
title: 'Yay!',
description: 'OpenTabletDriver set successfully.'
description: 'OpenTabletDriver set successfully.',
});
}
};
@@ -919,7 +919,7 @@
if (!updateFile) {
sileo.error({
title: 'Hmmm...',
description: 'No update file found.'
description: 'No update file found.',
});
$newVersion = undefined;
return;
@@ -1039,7 +1039,7 @@
if (!droppedTheme) {
sileo.error({
title: 'Hmmm...',
description: 'Failed to install theme.'
description: 'Failed to install theme.',
});
return;
}
@@ -1053,19 +1053,19 @@
sileo.error({
title: 'Hmmm...',
description:
importResult.error || 'An unknown error occurred while importing your theme.'
importResult.error || 'An unknown error occurred while importing your theme.',
});
return;
}
sileo.success({
title: 'Yay!',
description: 'Theme imported successfully'
description: 'Theme imported successfully',
});
} catch (err) {
console.log(err);
sileo.error({
title: 'Hmmm...',
description: 'An unknown error occurred while importing your theme.'
description: 'An unknown error occurred while importing your theme.',
});
} finally {
droppedTheme = undefined;
@@ -1173,7 +1173,7 @@
sileo.success({
title: 'Logout successful!',
description: 'See you soon!',
fill: '#181825'
fill: '#181825',
});
currentUser.set(undefined);
currentUserInfo.set(undefined);
@@ -1847,13 +1847,13 @@
if (downloadThemeResult.error && downloadThemeResult.error.length > 0) {
sileo.error({
title: 'Uhhm..',
description: downloadThemeResult.error
description: downloadThemeResult.error,
});
}
} else {
sileo.success({
title: 'Yaay!',
description: 'Theme installed successfully!'
description: 'Theme installed successfully!',
});
}
}
-3
View File
@@ -133,9 +133,6 @@
}
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...');
const validFolder = await isValidOsuFolder($osuInstallationPath);
if (!validFolder) {