feat: updates

This commit is contained in:
qier222 2022-04-16 21:14:03 +08:00
parent fc1c25f404
commit 7b6579e068
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
48 changed files with 1155 additions and 777 deletions

View file

@ -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,
}),
}
)