Consolidate OptionalLinkTable and ToggleLinkTable into LinkTable

LinkTable now supports variant (list/table) and optional title toggle, replacing the need for separate components. Updates all consumers to use the unified API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 02:43:24 +00:00
parent c2bbd7ad88
commit d857cce5dc
8 changed files with 73 additions and 76 deletions

View File

@@ -1,7 +1,5 @@
<script setup>
import { ref } from "vue";
import ToggleLinkTable from "@/components/util/ToggleLinkTable.vue";
import LinkTable from "@/components/util/LinkTable.vue";
const links = [
[
@@ -245,11 +243,11 @@ const links = [
class="a4page-portrait bdr-1 flex flex-row flex-wrap overflow-x-auto gap-1"
>
<div class="w-full h-fit">
<ToggleLinkTable
<LinkTable
class="flex flex-col flex-wrap"
v-for="link in links"
:title="link[0]"
:linkArr="link[1]"
:items="link[1]"
/>
</div>
</div>