mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
restructure files onto electron-vite boilerplate
This commit is contained in:
parent
91ce2cd8a1
commit
1cf587bc8f
457 changed files with 9927 additions and 11705 deletions
|
|
@ -1,14 +1,15 @@
|
|||
import { QueryClient } from '@tanstack/react-query';
|
||||
|
||||
import { api } from '/@/renderer/api';
|
||||
import { queryKeys } from '/@/renderer/api/query-keys';
|
||||
import {
|
||||
PlaylistSongListQuery,
|
||||
ServerListItem,
|
||||
SongDetailQuery,
|
||||
SongListQuery,
|
||||
SongListResponse,
|
||||
SongListSort,
|
||||
SortOrder,
|
||||
ServerListItem,
|
||||
} from '/@/renderer/api/types';
|
||||
|
||||
export const getPlaylistSongsById = async (args: {
|
||||
|
|
@ -17,7 +18,7 @@ export const getPlaylistSongsById = async (args: {
|
|||
queryClient: QueryClient;
|
||||
server: ServerListItem;
|
||||
}) => {
|
||||
const { id, queryClient, server, query } = args;
|
||||
const { id, query, queryClient, server } = args;
|
||||
|
||||
const queryFilter: PlaylistSongListQuery = {
|
||||
id,
|
||||
|
|
@ -55,7 +56,7 @@ export const getAlbumSongsById = async (args: {
|
|||
queryClient: QueryClient;
|
||||
server: ServerListItem;
|
||||
}) => {
|
||||
const { id, queryClient, server, query } = args;
|
||||
const { id, query, queryClient, server } = args;
|
||||
|
||||
const queryFilter: SongListQuery = {
|
||||
albumIds: id,
|
||||
|
|
@ -91,9 +92,9 @@ export const getGenreSongsById = async (args: {
|
|||
orderByIds?: boolean;
|
||||
query?: Partial<SongListQuery>;
|
||||
queryClient: QueryClient;
|
||||
server: ServerListItem | null;
|
||||
server: null | ServerListItem;
|
||||
}) => {
|
||||
const { id, queryClient, server, query } = args;
|
||||
const { id, query, queryClient, server } = args;
|
||||
|
||||
const data: SongListResponse = {
|
||||
items: [],
|
||||
|
|
@ -143,7 +144,7 @@ export const getAlbumArtistSongsById = async (args: {
|
|||
queryClient: QueryClient;
|
||||
server: ServerListItem;
|
||||
}) => {
|
||||
const { id, queryClient, server, query } = args;
|
||||
const { id, query, queryClient, server } = args;
|
||||
|
||||
const queryFilter: SongListQuery = {
|
||||
albumArtistIds: id || [],
|
||||
|
|
@ -180,7 +181,7 @@ export const getArtistSongsById = async (args: {
|
|||
queryClient: QueryClient;
|
||||
server: ServerListItem;
|
||||
}) => {
|
||||
const { id, queryClient, server, query } = args;
|
||||
const { id, query, queryClient, server } = args;
|
||||
|
||||
const queryFilter: SongListQuery = {
|
||||
artistIds: id,
|
||||
|
|
@ -216,7 +217,7 @@ export const getSongsByQuery = async (args: {
|
|||
queryClient: QueryClient;
|
||||
server: ServerListItem;
|
||||
}) => {
|
||||
const { queryClient, server, query } = args;
|
||||
const { query, queryClient, server } = args;
|
||||
|
||||
const queryFilter: SongListQuery = {
|
||||
sortBy: SongListSort.ALBUM,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue