This commit is contained in:
imeepos 2025-12-26 18:52:42 +08:00
parent af6daa4911
commit 0e249b27e1
1 changed files with 4 additions and 8 deletions

View File

@ -17,15 +17,7 @@ import { useFavoriteTemplates } from '@/hooks/data/use-favorite-templates'
import { usePublicTemplates } from '@/hooks/data/use-public-templates'
import { screenWidth } from '@/utils'
import { cn } from '@/utils/cn'
const BACKGROUND_VIDEOS = [
'https://cdn.roasmax.cn/material/b46f380532e14cf58dd350dbacc7c34a.mp4',
'https://cdn.roasmax.cn/material/992e6c5d940c42feb71c27e556b754c0.mp4',
'https://cdn.roasmax.cn/material/e4947477843f4067be7c37569a33d17b.mp4',
]
const CATEGORY_ID = `cat_iw83x5bg54fmjgvciju`
type MediaItem = {
id: string
type: 'image' | 'video'
@ -412,6 +404,7 @@ export default function Sync() {
limit,
page: 1,
sortBy: 'createdAt',
categoryId: CATEGORY_ID,
sortOrder: 'desc',
})
if (error || !data?.templates) {
@ -438,6 +431,7 @@ export default function Sync() {
limit,
page: 1,
sortBy: 'likeCount',
categoryId: CATEGORY_ID,
sortOrder: 'desc',
})
if (error || !data?.templates) {
@ -516,6 +510,7 @@ export default function Sync() {
limit,
page: pageNum,
sortBy: 'createdAt',
categoryId: CATEGORY_ID,
sortOrder: 'desc',
})
if (error || !data?.templates) {
@ -532,6 +527,7 @@ export default function Sync() {
limit,
page: pageNum,
sortBy: 'likeCount',
categoryId: CATEGORY_ID,
sortOrder: 'desc',
})
if (error || !data?.templates) {