Merge branch 'main' of https://gitea.bowongai.com/bowong/expo-duooomi-app
This commit is contained in:
commit
085e257c51
|
|
@ -17,15 +17,7 @@ import { useFavoriteTemplates } from '@/hooks/data/use-favorite-templates'
|
||||||
import { usePublicTemplates } from '@/hooks/data/use-public-templates'
|
import { usePublicTemplates } from '@/hooks/data/use-public-templates'
|
||||||
import { screenWidth } from '@/utils'
|
import { screenWidth } from '@/utils'
|
||||||
import { cn } from '@/utils/cn'
|
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`
|
const CATEGORY_ID = `cat_iw83x5bg54fmjgvciju`
|
||||||
|
|
||||||
type MediaItem = {
|
type MediaItem = {
|
||||||
id: string
|
id: string
|
||||||
type: 'image' | 'video'
|
type: 'image' | 'video'
|
||||||
|
|
@ -515,6 +507,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: pageNum,
|
page: pageNum,
|
||||||
sortBy: 'createdAt',
|
sortBy: 'createdAt',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
@ -531,6 +524,7 @@ export default function Sync() {
|
||||||
limit,
|
limit,
|
||||||
page: pageNum,
|
page: pageNum,
|
||||||
sortBy: 'likeCount',
|
sortBy: 'likeCount',
|
||||||
|
categoryId: CATEGORY_ID,
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
})
|
})
|
||||||
if (error || !data?.templates) {
|
if (error || !data?.templates) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue