chore: remove unused files, packages and imports
This commit is contained in:
parent
79795190f0
commit
4a41eba57e
3
bun.lock
3
bun.lock
@ -5,7 +5,6 @@
|
|||||||
"name": "ezpplauncher",
|
"name": "ezpplauncher",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@better-fetch/fetch": "^1.1.18",
|
"@better-fetch/fetch": "^1.1.18",
|
||||||
"@elron/svelte-audio-store": "1.0.0",
|
|
||||||
"@fontsource/sora": "^5.2.6",
|
"@fontsource/sora": "^5.2.6",
|
||||||
"@fontsource/space-mono": "^5.2.8",
|
"@fontsource/space-mono": "^5.2.8",
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
@ -72,8 +71,6 @@
|
|||||||
|
|
||||||
"@bufbuild/protobuf": ["@bufbuild/protobuf@2.5.2", "", {}, "sha512-foZ7qr0IsUBjzWIq+SuBLfdQCpJ1j8cTuNNT4owngTHoN5KsJb8L9t65fzz7SCeSWzescoOil/0ldqiL041ABg=="],
|
"@bufbuild/protobuf": ["@bufbuild/protobuf@2.5.2", "", {}, "sha512-foZ7qr0IsUBjzWIq+SuBLfdQCpJ1j8cTuNNT4owngTHoN5KsJb8L9t65fzz7SCeSWzescoOil/0ldqiL041ABg=="],
|
||||||
|
|
||||||
"@elron/svelte-audio-store": ["@elron/svelte-audio-store@1.0.0", "", { "peerDependencies": { "svelte": "^4.0.0" } }, "sha512-ksBF88rG4cbIt+ZLrxMKDdr1CxWxxEiyyZfHfNHCF/G9O2eDflSnCytSpid0Y43R4DwK+AukUlFfc0j5evqqEw=="],
|
|
||||||
|
|
||||||
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.5", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA=="],
|
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.5", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA=="],
|
||||||
|
|
||||||
"@esbuild/android-arm": ["@esbuild/android-arm@0.25.5", "", { "os": "android", "cpu": "arm" }, "sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA=="],
|
"@esbuild/android-arm": ["@esbuild/android-arm@0.25.5", "", { "os": "android", "cpu": "arm" }, "sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA=="],
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@better-fetch/fetch": "^1.1.18",
|
"@better-fetch/fetch": "^1.1.18",
|
||||||
"@elron/svelte-audio-store": "1.0.0",
|
|
||||||
"@fontsource/sora": "^5.2.6",
|
"@fontsource/sora": "^5.2.6",
|
||||||
"@fontsource/space-mono": "^5.2.8",
|
"@fontsource/space-mono": "^5.2.8",
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 3.2 MiB |
@ -1,16 +1,7 @@
|
|||||||
import { createAudioStore } from '@elron/svelte-audio-store';
|
|
||||||
import { invoke } from '@tauri-apps/api/core';
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
import { type ClassValue, clsx } from 'clsx';
|
import { type ClassValue, clsx } from 'clsx';
|
||||||
import { twMerge } from 'tailwind-merge';
|
import { twMerge } from 'tailwind-merge';
|
||||||
|
|
||||||
const sounds = {
|
|
||||||
menuHeartbeat: '/audio/menuHeartbeat.mp3',
|
|
||||||
menuBack: '/audio/menuBack.wav',
|
|
||||||
menuHit: '/audio/menuHit.wav',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const gameSounds = createAudioStore(sounds);
|
|
||||||
|
|
||||||
export function cn(...inputs: ClassValue[]) {
|
export function cn(...inputs: ClassValue[]) {
|
||||||
return twMerge(clsx(inputs));
|
return twMerge(clsx(inputs));
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
beatmapSets,
|
beatmapSets,
|
||||||
currentSkin,
|
currentSkin,
|
||||||
currentView,
|
currentView,
|
||||||
|
launcherVersion,
|
||||||
launching,
|
launching,
|
||||||
|
newVersion,
|
||||||
osuBuild,
|
osuBuild,
|
||||||
osuStream,
|
osuStream,
|
||||||
serverConnectionFails,
|
serverConnectionFails,
|
||||||
@ -32,6 +34,7 @@
|
|||||||
LogIn,
|
LogIn,
|
||||||
Brush,
|
Brush,
|
||||||
Heart,
|
Heart,
|
||||||
|
ArrowRight,
|
||||||
} from 'lucide-svelte';
|
} from 'lucide-svelte';
|
||||||
import NumberFlow from '@number-flow/svelte';
|
import NumberFlow from '@number-flow/svelte';
|
||||||
import * as AlertDialog from '@/components/ui/alert-dialog';
|
import * as AlertDialog from '@/components/ui/alert-dialog';
|
||||||
@ -74,6 +77,7 @@
|
|||||||
import { osuapi } from '@/api/osuapi';
|
import { osuapi } from '@/api/osuapi';
|
||||||
import {
|
import {
|
||||||
downloadEZPPLauncherUpdateFiles,
|
downloadEZPPLauncherUpdateFiles,
|
||||||
|
exit,
|
||||||
getBeatmapSetsCount,
|
getBeatmapSetsCount,
|
||||||
getEZPPLauncherUpdateFiles,
|
getEZPPLauncherUpdateFiles,
|
||||||
getReleaseStream,
|
getReleaseStream,
|
||||||
@ -337,6 +341,42 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<AlertDialog.Root open={$newVersion !== undefined}>
|
||||||
|
<AlertDialog.Content class="bg-theme-950 border-theme-800 p-0">
|
||||||
|
<div
|
||||||
|
class="flex flex-col items-center justify-center border-b border-theme-800 bg-black/40 rounded-t-lg p-3"
|
||||||
|
>
|
||||||
|
<img class="h-20 w-20" src={Logo} alt="logo" />
|
||||||
|
<span class="font-semibold text-xl">Update available!</span>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="grid grid-cols-3 items-center bg-theme-900 border border-theme-800 rounded-lg mx-3 p-3"
|
||||||
|
>
|
||||||
|
<div class="flex flex-col items-center justify-center">
|
||||||
|
<span class="text-sm text-muted-foreground">Current Version</span>
|
||||||
|
<span>{$launcherVersion}</span>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center justify-center">
|
||||||
|
<ArrowRight />
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-col items-center justify-center">
|
||||||
|
<span class="text-sm text-muted-foreground">New Version</span>
|
||||||
|
<span class="text-green-400">{$newVersion?.tag_name}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center justify-center mb-3">
|
||||||
|
<Button
|
||||||
|
onclick={async () => {
|
||||||
|
if ($newVersion) {
|
||||||
|
await openURL($newVersion.html_url);
|
||||||
|
await exit();
|
||||||
|
}
|
||||||
|
}}>Update now</Button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</AlertDialog.Content>
|
||||||
|
</AlertDialog.Root>
|
||||||
|
|
||||||
<AlertDialog.Root bind:open={$launching}>
|
<AlertDialog.Root bind:open={$launching}>
|
||||||
<AlertDialog.Content class="bg-theme-950 border-theme-800 p-0">
|
<AlertDialog.Content class="bg-theme-950 border-theme-800 p-0">
|
||||||
<div
|
<div
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import Logo from '$assets/logo.png';
|
|
||||||
|
|
||||||
import Titlebar from '@/components/ui/titlebar/titlebar.svelte';
|
import Titlebar from '@/components/ui/titlebar/titlebar.svelte';
|
||||||
import {
|
import { currentLoadingInfo, firstStartup, launcherVersion, setupValues } from '@/global';
|
||||||
currentLoadingInfo,
|
|
||||||
firstStartup,
|
|
||||||
launcherVersion,
|
|
||||||
newVersion,
|
|
||||||
setupValues,
|
|
||||||
} from '@/global';
|
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
import OsuCursor from '@/components/ui/osu-cursor/OsuCursor.svelte';
|
import OsuCursor from '@/components/ui/osu-cursor/OsuCursor.svelte';
|
||||||
import {
|
import {
|
||||||
@ -23,14 +16,10 @@
|
|||||||
import { Buffer } from 'buffer';
|
import { Buffer } from 'buffer';
|
||||||
import { Toaster } from '@/components/ui/sonner';
|
import { Toaster } from '@/components/ui/sonner';
|
||||||
import { userAuth } from '@/userAuthentication';
|
import { userAuth } from '@/userAuthentication';
|
||||||
import * as AlertDialog from '@/components/ui/alert-dialog';
|
import { getLauncherVersion } from '@/osuUtil';
|
||||||
import { exit, getLauncherVersion } from '@/osuUtil';
|
|
||||||
|
|
||||||
import '@fontsource/sora';
|
import '@fontsource/sora';
|
||||||
import '@fontsource/space-mono';
|
import '@fontsource/space-mono';
|
||||||
import { ArrowRight } from 'lucide-svelte';
|
|
||||||
import Button from '@/components/ui/button/button.svelte';
|
|
||||||
import { openURL } from '@/utils';
|
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
@ -121,42 +110,6 @@
|
|||||||
|
|
||||||
<Titlebar />
|
<Titlebar />
|
||||||
|
|
||||||
<AlertDialog.Root open={$newVersion !== undefined}>
|
|
||||||
<AlertDialog.Content class="bg-theme-950 border-theme-800 p-0">
|
|
||||||
<div
|
|
||||||
class="flex flex-col items-center justify-center border-b border-theme-800 bg-black/40 rounded-t-lg p-3"
|
|
||||||
>
|
|
||||||
<img class="h-20 w-20" src={Logo} alt="logo" />
|
|
||||||
<span class="font-semibold text-xl">Update available!</span>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="grid grid-cols-3 items-center bg-theme-900 border border-theme-800 rounded-lg mx-3 p-3"
|
|
||||||
>
|
|
||||||
<div class="flex flex-col items-center justify-center">
|
|
||||||
<span class="text-sm text-muted-foreground">Current Version</span>
|
|
||||||
<span>{$launcherVersion}</span>
|
|
||||||
</div>
|
|
||||||
<div class="flex items-center justify-center">
|
|
||||||
<ArrowRight />
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col items-center justify-center">
|
|
||||||
<span class="text-sm text-muted-foreground">New Version</span>
|
|
||||||
<span class="text-green-400">{$newVersion?.tag_name}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="flex items-center justify-center mb-3">
|
|
||||||
<Button
|
|
||||||
onclick={async () => {
|
|
||||||
if ($newVersion) {
|
|
||||||
await openURL($newVersion.html_url);
|
|
||||||
await exit();
|
|
||||||
}
|
|
||||||
}}>Update now</Button
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</AlertDialog.Content>
|
|
||||||
</AlertDialog.Root>
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
</main>
|
</main>
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user