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