Skip to content

Commit 3408766

Browse files
committed
feat: temp remove mock data
1 parent 07bd516 commit 3408766

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

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

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ import {
1313
ButtonStyled,
1414
Combobox,
1515
type ComboboxOption,
16-
// injectModrinthClient, // TEMPORARY: Commented out while using mock data
16+
injectModrinthClient,
1717
Pagination,
1818
} from '@modrinth/ui'
19-
// import { useQuery } from '@tanstack/vue-query' // TEMPORARY: Commented out while using mock data
19+
import { useQuery } from '@tanstack/vue-query'
2020
import { defineMessages, useVIntl } from '@vintl/vintl'
2121
import Fuse from 'fuse.js'
2222
2323
import { type BatchScanProgress } from '~/components/ui/moderation/BatchScanProgressAlert.vue'
2424
import ModerationTechRevCard from '~/components/ui/moderation/ModerationTechRevCard.vue'
2525
2626
// TEMPORARY: Mock data for development
27-
import { generateMockProjectReviews } from '~/utils/mockTechReviewData'
27+
// import { generateMockProjectReviews } from '~/utils/mockTechReviewData'
2828
29-
// const client = injectModrinthClient() // TEMPORARY: Commented out while using mock data
29+
const client = injectModrinthClient()
3030
3131
const currentPage = ref(1)
3232
const itemsPerPage = 15
@@ -223,8 +223,6 @@ function goToPage(page: number, top = false) {
223223
}
224224
}
225225
226-
// TEMPORARY: Commented out while using mock data
227-
/*
228226
function toApiSort(label: string): Labrinth.TechReview.Internal.SearchProjectsSort {
229227
switch (label) {
230228
case 'Oldest':
@@ -234,11 +232,7 @@ function toApiSort(label: string): Labrinth.TechReview.Internal.SearchProjectsSo
234232
return 'CreatedDesc'
235233
}
236234
}
237-
*/
238235
239-
// TEMPORARY: Using mock data instead of API
240-
// Uncomment below to use real API data
241-
/*
242236
const {
243237
data: reviewItems,
244238
isLoading,
@@ -254,16 +248,15 @@ const {
254248
},
255249
initialData: [] as Labrinth.TechReview.Internal.ProjectReview[],
256250
})
257-
*/
258251
259252
// TEMPORARY: Mock data for development (58 items to match batch scan progress)
260-
const reviewItems = ref<Labrinth.TechReview.Internal.ProjectReview[]>(
261-
generateMockProjectReviews(58),
262-
)
263-
const isLoading = ref(false)
264-
const refetch = () => {
265-
reviewItems.value = generateMockProjectReviews(58)
266-
}
253+
// const reviewItems = ref<Labrinth.TechReview.Internal.ProjectReview[]>(
254+
// generateMockProjectReviews(58),
255+
// )
256+
// const isLoading = ref(false)
257+
// const refetch = () => {
258+
// reviewItems.value = generateMockProjectReviews(58)
259+
// }
267260
268261
watch(currentSortType, () => {
269262
goToPage(1)

0 commit comments

Comments
 (0)