aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-08-04 21:59:22 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-08-04 21:59:22 +0200
commitd30cd8a9abc3298c0a0b05f249e54318bb4537f2 (patch)
tree8b397cc5478fc7b42cc092b86117d73eec50136f /src
parent04a8e122be89524b3edb5460a05e4edd6bfd88d2 (diff)
downloadit-tools-d30cd8a9abc3298c0a0b05f249e54318bb4537f2.tar.gz
it-tools-d30cd8a9abc3298c0a0b05f249e54318bb4537f2.tar.zst
it-tools-d30cd8a9abc3298c0a0b05f249e54318bb4537f2.zip
refactor(home): removed new tool first sort
Diffstat (limited to 'src')
-rw-r--r--src/pages/Home.page.vue10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/pages/Home.page.vue b/src/pages/Home.page.vue
index 5e22d49..9f2b501 100644
--- a/src/pages/Home.page.vue
+++ b/src/pages/Home.page.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { toolsWithCategory } from '@/tools';
-import ToolCard from '../components/ToolCard.vue';
import { useHead } from '@vueuse/head';
+import ToolCard from '../components/ToolCard.vue';
useHead({ title: 'IT Tools - Handy online tools for developers' });
</script>
@@ -9,13 +9,7 @@ useHead({ title: 'IT Tools - Handy online tools for developers' });
<template>
<div class="home-page">
<n-grid x-gap="12" y-gap="12" cols="1 400:2 800:3 1200:4 2000:8">
- <n-gi
- v-for="tool in [
- ...toolsWithCategory.filter(({ isNew }) => isNew),
- ...toolsWithCategory.filter(({ isNew }) => !isNew),
- ]"
- :key="tool.name"
- >
+ <n-gi v-for="tool in toolsWithCategory" :key="tool.name">
<tool-card :tool="tool" />
</n-gi>
</n-grid>