Skip to content

Commit efe9eb1

Browse files
committed
chore: re-enable mock data
1 parent 73f966d commit efe9eb1

File tree

2 files changed

+679
-675
lines changed

2 files changed

+679
-675
lines changed

apps/frontend/src/pages/moderation/technical-review.vue

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Fuse from 'fuse.js'
2323
import ModerationTechRevCard from '~/components/ui/moderation/ModerationTechRevCard.vue'
2424
2525
// TEMPORARY: Mock data for development
26-
// import { generateMockProjectReviews } from '~/utils/mockTechReviewData'
26+
import { generateMockProjectReviews } from '~/utils/mockTechReviewData'
2727
2828
const client = injectModrinthClient()
2929
@@ -232,30 +232,30 @@ function toApiSort(label: string): Labrinth.TechReview.Internal.SearchProjectsSo
232232
}
233233
}
234234
235-
const {
236-
data: reviewItems,
237-
isLoading,
238-
refetch,
239-
} = useQuery({
240-
queryKey: ['tech-reviews', currentSortType],
241-
queryFn: async () => {
242-
return await client.labrinth.tech_review_internal.searchProjects({
243-
limit: 350,
244-
page: 0,
245-
sort_by: toApiSort(currentSortType.value),
246-
})
247-
},
248-
initialData: [] as Labrinth.TechReview.Internal.ProjectReview[],
249-
})
235+
// const {
236+
// data: reviewItems,
237+
// isLoading,
238+
// refetch,
239+
// } = useQuery({
240+
// queryKey: ['tech-reviews', currentSortType],
241+
// queryFn: async () => {
242+
// return await client.labrinth.tech_review_internal.searchProjects({
243+
// limit: 350,
244+
// page: 0,
245+
// sort_by: toApiSort(currentSortType.value),
246+
// })
247+
// },
248+
// initialData: [] as Labrinth.TechReview.Internal.ProjectReview[],
249+
// })
250250
251251
// TEMPORARY: Mock data for development (58 items to match batch scan progress)
252-
// const reviewItems = ref<Labrinth.TechReview.Internal.ProjectReview[]>(
253-
// generateMockProjectReviews(58),
254-
// )
255-
// const isLoading = ref(false)
256-
// const refetch = () => {
257-
// reviewItems.value = generateMockProjectReviews(58)
258-
// }
252+
const reviewItems = ref<Labrinth.TechReview.Internal.ProjectReview[]>(
253+
generateMockProjectReviews(58),
254+
)
255+
const isLoading = ref(false)
256+
const refetch = () => {
257+
reviewItems.value = generateMockProjectReviews(58)
258+
}
259259
260260
watch(currentSortType, () => {
261261
goToPage(1)

0 commit comments

Comments
 (0)