mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: updates
This commit is contained in:
parent
fc1c25f404
commit
7b6579e068
48 changed files with 1155 additions and 777 deletions
|
|
@ -1,12 +1,13 @@
|
|||
import {
|
||||
PlaylistApiNames,
|
||||
fetchRecommendedPlaylists,
|
||||
fetchDailyRecommendPlaylists,
|
||||
} from '@/renderer/api/playlist'
|
||||
import CoverRow from '@/renderer/components/CoverRow'
|
||||
import DailyTracksCard from '@/renderer/components/DailyTracksCard'
|
||||
import FMCard from '@/renderer/components/FMCard'
|
||||
import { IpcChannels } from '@/main/IpcChannelsName'
|
||||
import { PlaylistApiNames } from '@/shared/api/Playlists'
|
||||
import { APIs } from '@/shared/CacheAPIs'
|
||||
import { IpcChannels } from '@/shared/IpcChannels'
|
||||
|
||||
export default function Home() {
|
||||
const {
|
||||
|
|
@ -19,7 +20,7 @@ export default function Home() {
|
|||
retry: false,
|
||||
placeholderData: () =>
|
||||
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
|
||||
api: 'recommend/resource',
|
||||
api: APIs.RecommendResource,
|
||||
}),
|
||||
}
|
||||
)
|
||||
|
|
@ -35,7 +36,7 @@ export default function Home() {
|
|||
{
|
||||
placeholderData: () =>
|
||||
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
|
||||
api: 'personalized',
|
||||
api: APIs.Personalized,
|
||||
}),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue