favorites and other should be done?

This commit is contained in:
2026-02-06 13:37:21 +00:00
parent 4d8cb5f657
commit 76508bf497
4 changed files with 14 additions and 138 deletions

View File

@@ -2,71 +2,20 @@
import Header from "@/components/text/Header.vue";
import OptionalLinkTable from "@/components/util/OptionalLinkTable.vue";
import AutoScroll from "@/components/util/AutoScroll.vue";
const favs = [
{
type: "Daioh",
name: "Tomo",
},
{
type: "Color",
name: "Teal",
},
{
type: "Pet",
name: "Cat",
},
{
type: "Subject",
name: "Math",
},
{
type: "Drink",
name: "Monster",
},
{
type: "Sport",
name: "Running",
},
{
type: "Anime",
name: "Evangelion",
},
{
type: "Ingredient",
name: "Eggs",
},
{
type: "OS",
name: "Linux",
},
{
type: "Fruit",
name: "Satsumas",
},
{
type: "Vegetable",
name: "Cucumber",
},
{
type: "Hobby",
name: "Climbing",
},
{
type: "Season",
name: "Summer",
},
{
type: "Language",
name: "Rust",
},
];
import { useFavoritesStore } from "@/stores/favorites";
const favoritesStore = useFavoritesStore();
</script>
<template>
<div class="flex flex-col items-center">
<Header>favs</Header>
<AutoScroll class="w-full flex-1">
<OptionalLinkTable class="w-full" :data="favs" />
<OptionalLinkTable
class="w-full"
:data="favoritesStore.favorites"
/>
</AutoScroll>
</div>
</template>