mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 15:25:46 +00:00
refactor(playlist): co-locate playlist feature into features/playlist
This commit is contained in:
@@ -57,7 +57,7 @@ vi.mock('@/features/artist', () => ({
|
||||
getArtistForServer: (serverId: string, artistId: string) => getArtistForServerMock(serverId, artistId),
|
||||
}));
|
||||
|
||||
vi.mock('@/api/subsonicPlaylists', () => ({
|
||||
vi.mock('@/features/playlist', () => ({
|
||||
getPlaylistForServer: (serverId: string, playlistId: string) =>
|
||||
getPlaylistForServerMock(serverId, playlistId),
|
||||
}));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getAlbumForServer } from '@/api/subsonicLibrary';
|
||||
import { getArtistForServer } from '@/features/artist';
|
||||
import { getPlaylistForServer } from '@/api/subsonicPlaylists';
|
||||
import { getPlaylistForServer } from '@/features/playlist';
|
||||
import type {
|
||||
SubsonicAlbum,
|
||||
SubsonicArtist,
|
||||
|
||||
@@ -29,7 +29,7 @@ vi.mock('@/utils/network/activeServerReachability', () => ({
|
||||
onActiveServerBecameReachable: () => () => {},
|
||||
}));
|
||||
|
||||
vi.mock('@/api/subsonicPlaylists', () => ({
|
||||
vi.mock('@/features/playlist', () => ({
|
||||
getPlaylistForServer: (serverId: string, id: string) => getPlaylistMock(serverId, id),
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { libraryGetTracksByAlbum, subscribeLibrarySyncIdle } from '@/api/library';
|
||||
import { getAlbumForServer, filterSongsToServerLibrary } from '@/api/subsonicLibrary';
|
||||
import { getPlaylistForServer } from '@/api/subsonicPlaylists';
|
||||
import { getPlaylistForServer } from '@/features/playlist';
|
||||
import { getArtistForServer } from '@/features/artist';
|
||||
import type { SubsonicSong } from '@/api/subsonicTypes';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
@@ -8,7 +8,7 @@ import { useAuthStore } from '@/store/authStore';
|
||||
import type { PinSource } from '@/store/localPlaybackStore';
|
||||
import { useLocalPlaybackStore } from '@/store/localPlaybackStore';
|
||||
import { useOfflineStore } from '@/features/offline/store/offlineStore';
|
||||
import { usePlaylistStore } from '@/store/playlistStore';
|
||||
import { usePlaylistStore } from '@/features/playlist';
|
||||
import { isSmartPlaylistName } from '@/utils/componentHelpers/playlistDetailHelpers';
|
||||
import { getMediaDir } from '@/utils/media/mediaDir';
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { libraryGetTracksBatchChunked } from '@/api/library';
|
||||
import { getPlaylist } from '@/api/subsonicPlaylists';
|
||||
import { getPlaylist } from '@/features/playlist';
|
||||
import type { SubsonicSong } from '@/api/subsonicTypes';
|
||||
import { useAuthStore } from '@/store/authStore';
|
||||
import type { OfflineAlbumMeta } from '@/features/offline/store/offlineStore';
|
||||
|
||||
Reference in New Issue
Block a user