add table of contents and #links.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-09 16:48:40 +01:00
parent 838a787409
commit 748814b43c
11 changed files with 240 additions and 11 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
<h1>Upcoming Deadlines</h1>
{/if}
{#each sortedProjects as project (project.id)}
<ProjectEntry hideInactive project={project} />
<ProjectEntry linkProject={project != fakeProject} hideInactive project={project} />
{/each}
{#if fakeProject.tasks.length === 0 && !$fpProjectStore.loading && $fpProjectStore.projects.length === 0}
<EmptyList icon="check" text="All good!" />
+2
View File
@@ -3,6 +3,7 @@
import GroupEntry from "../components/GroupEntry.svelte";
import type { ModalData } from "../stores/modal";
import groupStore from "../stores/group";
import TableOfContent from "../components/TableOfContent.svelte";
const mdGroupAdd: ModalData = {name: "group.add"};
@@ -14,6 +15,7 @@
</script>
<div class="page">
<TableOfContent groups={$groupStore.groups} />
{#each $groupStore.groups as group (group.id)}
<GroupEntry showAllOptions group={group} />
{/each}
+2
View File
@@ -2,6 +2,7 @@
import Boi from "../components/Boi.svelte";
import Checkbox from "../components/Checkbox.svelte";
import ProjectEntry from "../components/ProjectEntry.svelte";
import TableOfContent from "../components/TableOfContent.svelte";
import type { ModalData } from "../stores/modal";
import projectStore from "../stores/project";
@@ -30,6 +31,7 @@
<div class="options">
<Checkbox centered bind:checked={showInactive} label="Show completed tasks and projects." />
</div>
<TableOfContent hideInactive={!showInactive} projects={$projectStore.projects} />
{#each $projectStore.projects as project (project.id)}
<ProjectEntry hideInactive={!showInactive} showAllOptions project={project} />
{/each}