@@ -23,7 +23,7 @@ import Fuse from 'fuse.js'
2323import 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
2828const 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
260260watch (currentSortType , () => {
261261 goToPage (1 )
0 commit comments