You've already forked AstralRinth
forked from didirus/AstralRinth
remove search from home
This commit is contained in:
@@ -520,19 +520,9 @@ const sortType = ref('relevance')
|
|||||||
const auth = await useAuth()
|
const auth = await useAuth()
|
||||||
const tags = useTags()
|
const tags = useTags()
|
||||||
|
|
||||||
const [{ data: searchProjects, refresh: updateSearchProjects }, { data: notifications }] =
|
const searchProjects = ref([])
|
||||||
await Promise.all([
|
const notifications = ref([])
|
||||||
useAsyncData(
|
const updateSearchProjects = async () => {}
|
||||||
'demoSearchProjects',
|
|
||||||
() => useBaseFetch(`search?limit=3&query=${searchQuery.value}&index=${sortType.value}`),
|
|
||||||
{
|
|
||||||
transform: (result) => result.hits,
|
|
||||||
}
|
|
||||||
),
|
|
||||||
useAsyncData('updatedProjects', () => useBaseFetch(`search?limit=3&query=&index=updated`), {
|
|
||||||
transform: (result) => result.hits,
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
|
|
||||||
const val = Math.ceil(homepageProjects.length / 3)
|
const val = Math.ceil(homepageProjects.length / 3)
|
||||||
const rows = shallowRef([
|
const rows = shallowRef([
|
||||||
|
|||||||
Reference in New Issue
Block a user