feat(dashboard): add text only list view

This commit is contained in:
Jake Fulmine 2023-08-20 20:02:03 +02:00
parent 5083a181de
commit e3dde36d0e
5 changed files with 184 additions and 23 deletions

View file

@ -14,6 +14,7 @@
import type { ListOptions, PageOptions } from './types';
import { createShortList, filterList, getPageAmount, paginateList } from './functions';
import TinyView from './TinyView.svelte';
import TextView from './TextView.svelte';
$: memberList = getContext<Writable<Member[]>>("members")
$: groupList = getContext<Writable<Group[]>>("groups")
@ -89,6 +90,8 @@
<CardView {pageOptions} currentList={currentGroups} />
{:else if pageOptions.view === "tiny"}
<TinyView {pageOptions} currentList={currentGroups} />
{:else if pageOptions.view === "text"}
<TextView {pageOptions} listOptions={options} currentList={currentGroups} />
{:else}
<ListView currentList={currentGroups} {pageOptions} {options} fullListLength={groups.length} />
{/if}