refactor: replace @ alias with
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import type {
|
||||
EZPPUserInfoResponse,
|
||||
EZPPUserResponse,
|
||||
EZPPUSerStatusResponse,
|
||||
} from '@/types';
|
||||
} from '$lib/types';
|
||||
import { betterFetch } from '@better-fetch/fetch';
|
||||
|
||||
const BANCHO_ENDPOINT = 'https://c.ez-pp.farm/';
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { Release } from '@/types';
|
||||
import type { Release } from '$lib/types';
|
||||
import { betterFetch } from '@better-fetch/fetch';
|
||||
import semver from 'semver';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { StreamsResult } from '@/types';
|
||||
import type { StreamsResult } from '$lib/types';
|
||||
import { betterFetch } from '@better-fetch/fetch';
|
||||
|
||||
const API_ENDPOINT = 'https://osu.ppy.sh/api/';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { reduceAnimations } from '@/userSettings';
|
||||
import { reduceAnimations } from '$lib/userSettings';
|
||||
|
||||
//TODO: maybe dynamic background images fetched from ezpp?
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import NyanCat from '$assets/themes/nyan_cat/image.gif';
|
||||
import { reduceAnimations } from '@/userSettings';
|
||||
import { reduceAnimations } from '$lib/userSettings';
|
||||
|
||||
//TODO: maybe dynamic background images fetched from ezpp?
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import cursor_additive from '$assets/cursor-additive.png';
|
||||
import cursor_default from '$assets/cursor.png';
|
||||
import { cursorSmoothness } from '@/userSettings';
|
||||
import { cursorSmoothness } from '$lib/userSettings';
|
||||
import { animate } from 'animejs';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { custom_theme_audio_playing, custom_theme_volume } from '@/global';
|
||||
import { reduceAnimations, userSettings } from '@/userSettings';
|
||||
import { custom_theme_audio_playing, custom_theme_volume } from '$lib/global';
|
||||
import { reduceAnimations, userSettings } from '$lib/userSettings';
|
||||
import { Volume, Volume1, VolumeOff } from '@lucide/svelte';
|
||||
import Minimize from '@lucide/svelte/icons/minus';
|
||||
import Volume2 from '@lucide/svelte/icons/volume-2';
|
||||
|
||||
+13
-13
@@ -1,12 +1,12 @@
|
||||
<script lang="ts">
|
||||
import Logo from '$assets/logo.png';
|
||||
import '../app.css';
|
||||
import * as AlertDialog from '@/components/ui/alert-dialog';
|
||||
import AnimatedBg from '@/components/ui/animated-bg/AnimatedBg.svelte';
|
||||
import Button from '@/components/ui/button/button.svelte';
|
||||
import OsuCursor from '@/components/ui/osu-cursor/OsuCursor.svelte';
|
||||
import SileoToast from '@/components/ui/sileo/sileo-toast.svelte';
|
||||
import Titlebar from '@/components/ui/titlebar/titlebar.svelte';
|
||||
import * as AlertDialog from '$lib/components/ui/alert-dialog';
|
||||
import AnimatedBg from '$lib/components/ui/animated-bg/AnimatedBg.svelte';
|
||||
import Button from '$lib/components/ui/button/button.svelte';
|
||||
import OsuCursor from '$lib/components/ui/osu-cursor/OsuCursor.svelte';
|
||||
import SileoToast from '$lib/components/ui/sileo/sileo-toast.svelte';
|
||||
import Titlebar from '$lib/components/ui/titlebar/titlebar.svelte';
|
||||
import {
|
||||
active_custom_theme,
|
||||
currentLoadingInfo,
|
||||
@@ -22,11 +22,11 @@
|
||||
presenceLoading,
|
||||
setupValues,
|
||||
trackingEnabled,
|
||||
} from '@/global';
|
||||
import { exit, getLauncherVersion, getPlatform } from '@/osuUtil';
|
||||
import * as presence from '@/presence';
|
||||
import { getDownloadableThemes, getThemes, loadTheme } from '@/themes';
|
||||
import { userAuth } from '@/userAuthentication';
|
||||
} from '$lib/global';
|
||||
import { exit, getLauncherVersion, getPlatform } from '$lib/osuUtil';
|
||||
import * as presence from '$lib/presence';
|
||||
import { getDownloadableThemes, getThemes, loadTheme } from '$lib/themes';
|
||||
import { userAuth } from '$lib/userAuthentication';
|
||||
import {
|
||||
cursorSmoothening,
|
||||
customCursor,
|
||||
@@ -34,8 +34,8 @@
|
||||
patch,
|
||||
reduceAnimations,
|
||||
userSettings,
|
||||
} from '@/userSettings';
|
||||
import { trackMediaContainer } from '@/utils';
|
||||
} from '$lib/userSettings';
|
||||
import { trackMediaContainer } from '$lib/utils';
|
||||
import { Buffer } from 'buffer';
|
||||
import { SemVer } from 'semver';
|
||||
import { sileo } from 'sileo';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { currentView, launcherVersion, trackingEnabled } from '@/global';
|
||||
import { currentView, launcherVersion, trackingEnabled } from '$lib/global';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
const View = $derived($currentView);
|
||||
|
||||
+25
-25
@@ -1,22 +1,22 @@
|
||||
<script lang="ts">
|
||||
import DefaultThemePreview from '$assets/default_preview.png';
|
||||
import Logo from '$assets/logo.png';
|
||||
import { ezppfarm } from '@/api/ezpp';
|
||||
import { osuapi } from '@/api/osuapi';
|
||||
import * as AlertDialog from '@/components/ui/alert-dialog';
|
||||
import * as Avatar from '@/components/ui/avatar';
|
||||
import Badge from '@/components/ui/badge/badge.svelte';
|
||||
import Button from '@/components/ui/button/button.svelte';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import DownloadButton from '@/components/ui/download-button/DownloadButton.svelte';
|
||||
import * as DropdownMenu from '@/components/ui/dropdown-menu';
|
||||
import Input from '@/components/ui/input/input.svelte';
|
||||
import Label from '@/components/ui/label/label.svelte';
|
||||
import Progress from '@/components/ui/progress/progress.svelte';
|
||||
import ScrollContainer from '@/components/ui/scroll-container/ScrollContainer.svelte';
|
||||
import * as Select from '@/components/ui/select';
|
||||
import { currentUserInfo } from '@/data';
|
||||
import { useDropZone } from '@/dropZone.svelte';
|
||||
import { ezppfarm } from '$lib/api/ezpp';
|
||||
import { osuapi } from '$lib/api/osuapi';
|
||||
import * as AlertDialog from '$lib/components/ui/alert-dialog';
|
||||
import * as Avatar from '$lib/components/ui/avatar';
|
||||
import Badge from '$lib/components/ui/badge/badge.svelte';
|
||||
import Button from '$lib/components/ui/button/button.svelte';
|
||||
import { Checkbox } from '$lib/components/ui/checkbox';
|
||||
import DownloadButton from '$lib/components/ui/download-button/DownloadButton.svelte';
|
||||
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
|
||||
import Input from '$lib/components/ui/input/input.svelte';
|
||||
import Label from '$lib/components/ui/label/label.svelte';
|
||||
import Progress from '$lib/components/ui/progress/progress.svelte';
|
||||
import ScrollContainer from '$lib/components/ui/scroll-container/ScrollContainer.svelte';
|
||||
import * as Select from '$lib/components/ui/select';
|
||||
import { currentUserInfo } from '$lib/data';
|
||||
import { useDropZone } from '$lib/dropZone.svelte';
|
||||
import {
|
||||
getGamemodeInt,
|
||||
getGamemodeName,
|
||||
@@ -24,7 +24,7 @@
|
||||
modeIntToStr,
|
||||
typeIntToStr,
|
||||
validModeTypeCombinationsSorted,
|
||||
} from '@/gamemode';
|
||||
} from '$lib/gamemode';
|
||||
import {
|
||||
active_custom_theme,
|
||||
beatmapSets,
|
||||
@@ -49,7 +49,7 @@
|
||||
skins,
|
||||
skinsCount,
|
||||
trackingEnabled,
|
||||
} from '@/global';
|
||||
} from '$lib/global';
|
||||
import {
|
||||
downloadEZPPLauncherUpdateFiles,
|
||||
downloadUpdate,
|
||||
@@ -75,8 +75,8 @@
|
||||
setUserConfigValues,
|
||||
startOpenTabletDriver,
|
||||
stopOpenTabletDriver,
|
||||
} from '@/osuUtil';
|
||||
import * as presence from '@/presence';
|
||||
} from '$lib/osuUtil';
|
||||
import * as presence from '$lib/presence';
|
||||
import {
|
||||
checkThemeFromFile,
|
||||
deleteTheme,
|
||||
@@ -84,9 +84,9 @@
|
||||
importThemeFromFile,
|
||||
loadTheme,
|
||||
type ThemeInfo,
|
||||
} from '@/themes';
|
||||
import { EZPPActionStatus } from '@/types';
|
||||
import { currentUser, userAuth } from '@/userAuthentication';
|
||||
} from '$lib/themes';
|
||||
import { EZPPActionStatus } from '$lib/types';
|
||||
import { currentUser, userAuth } from '$lib/userAuthentication';
|
||||
import {
|
||||
cursorSmoothening,
|
||||
customCursor,
|
||||
@@ -96,7 +96,7 @@
|
||||
preferredType,
|
||||
reduceAnimations,
|
||||
userSettings,
|
||||
} from '@/userSettings';
|
||||
} from '$lib/userSettings';
|
||||
import {
|
||||
compareBuildNumbers,
|
||||
fadeGlobalVolume,
|
||||
@@ -108,7 +108,7 @@
|
||||
resumeGlobalMedia,
|
||||
setCurrentTimeGlobalMedia,
|
||||
urlIsValidImage,
|
||||
} from '@/utils';
|
||||
} from '$lib/utils';
|
||||
import {
|
||||
LoaderCircle,
|
||||
Music,
|
||||
|
||||
+11
-11
@@ -1,11 +1,9 @@
|
||||
<script lang="ts">
|
||||
import Logo from '$assets/logo.png';
|
||||
import Launch from './Launch.svelte';
|
||||
import SetupWizard from './SetupWizard.svelte';
|
||||
import { ezppfarm } from '@/api/ezpp';
|
||||
import { git } from '@/api/git';
|
||||
import { currentUserInfo } from '@/data';
|
||||
import { estimateFrameRate } from '@/displayUtils';
|
||||
import { ezppfarm } from '$lib/api/ezpp';
|
||||
import { git } from '$lib/api/git';
|
||||
import { currentUserInfo } from '$lib/data';
|
||||
import { estimateFrameRate } from '$lib/displayUtils';
|
||||
import {
|
||||
beatmapSets,
|
||||
currentLoadingInfo,
|
||||
@@ -20,7 +18,7 @@
|
||||
osuStream,
|
||||
skins,
|
||||
skinsCount,
|
||||
} from '@/global';
|
||||
} from '$lib/global';
|
||||
import {
|
||||
getBeatmapSetsCount,
|
||||
getEZPPLauncherStreams,
|
||||
@@ -29,16 +27,18 @@
|
||||
getSkins,
|
||||
getVersion,
|
||||
isValidOsuFolder,
|
||||
} from '@/osuUtil';
|
||||
import type { EZPPUser } from '@/types';
|
||||
import { currentUser, userAuth } from '@/userAuthentication';
|
||||
} from '$lib/osuUtil';
|
||||
import type { EZPPUser } from '$lib/types';
|
||||
import { currentUser, userAuth } from '$lib/userAuthentication';
|
||||
import {
|
||||
cursorSmoothness,
|
||||
osuInstallationPath,
|
||||
preferredMode,
|
||||
preferredType,
|
||||
userSettings,
|
||||
} from '@/userSettings';
|
||||
} from '$lib/userSettings';
|
||||
import Launch from './Launch.svelte';
|
||||
import SetupWizard from './SetupWizard.svelte';
|
||||
import { animate, utils } from 'animejs';
|
||||
import { sileo } from 'sileo';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { dev } from '$app/environment';
|
||||
import Logo from '$assets/logo.png';
|
||||
import Launch from './Launch.svelte';
|
||||
import Button from '@/components/ui/button/button.svelte';
|
||||
import Checkbox from '@/components/ui/checkbox/checkbox.svelte';
|
||||
import Input from '@/components/ui/input/input.svelte';
|
||||
import Label from '@/components/ui/label/label.svelte';
|
||||
import Button from '$lib/components/ui/button/button.svelte';
|
||||
import Checkbox from '$lib/components/ui/checkbox/checkbox.svelte';
|
||||
import Input from '$lib/components/ui/input/input.svelte';
|
||||
import Label from '$lib/components/ui/label/label.svelte';
|
||||
import {
|
||||
beatmapSets,
|
||||
currentSkin,
|
||||
@@ -17,7 +16,7 @@
|
||||
presenceLoading,
|
||||
skins,
|
||||
skinsCount,
|
||||
} from '@/global';
|
||||
} from '$lib/global';
|
||||
import {
|
||||
autoDetectOsuInstallFolder,
|
||||
getBeatmapSetsCount,
|
||||
@@ -26,7 +25,7 @@
|
||||
getSkins,
|
||||
getVersion,
|
||||
isValidOsuFolder,
|
||||
} from '@/osuUtil';
|
||||
} from '$lib/osuUtil';
|
||||
import {
|
||||
cursorSmoothening,
|
||||
customCursor,
|
||||
@@ -34,7 +33,8 @@
|
||||
patch,
|
||||
reduceAnimations,
|
||||
userSettings,
|
||||
} from '@/userSettings';
|
||||
} from '$lib/userSettings';
|
||||
import Launch from './Launch.svelte';
|
||||
import { Check, CircleCheckBig, CircleOff, LoaderCircle } from '@lucide/svelte';
|
||||
import { open } from '@tauri-apps/plugin-dialog';
|
||||
import { animate } from 'animejs';
|
||||
|
||||
@@ -10,7 +10,6 @@ const config = {
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
alias: {
|
||||
'@/*': './src/lib/*',
|
||||
'$lib/*': './src/lib/*',
|
||||
'$assets/*': './src/assets/*',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user