From d5bd9adedd44332ca9f74fa867855d0d248b1ad3 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 26 Aug 2022 17:43:10 +0200 Subject: [PATCH] Load articles when needed. --- src/lib/components/SectionTaView.svelte | 9 ++++++-- src/lib/components/TextelrView.svelte | 9 ++++++-- src/routes/textes/[id]/+page.svelte | 29 +++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/src/lib/components/SectionTaView.svelte b/src/lib/components/SectionTaView.svelte index b95d060..20aca86 100644 --- a/src/lib/components/SectionTaView.svelte +++ b/src/lib/components/SectionTaView.svelte @@ -4,7 +4,7 @@ import type { Aggregate } from "$lib/aggregates" import ArticleView from "$lib/components/ArticleView.svelte" - import type { SectionTa } from "$lib/legal" + import { pathnameFromLegalId, type SectionTa } from "$lib/legal" import { summarizeLegalObject } from "$lib/summaries" export let data: Aggregate @@ -35,7 +35,12 @@ diff --git a/src/lib/components/TextelrView.svelte b/src/lib/components/TextelrView.svelte index 53773e3..389dd10 100644 --- a/src/lib/components/TextelrView.svelte +++ b/src/lib/components/TextelrView.svelte @@ -4,7 +4,7 @@ import type { Aggregate } from "$lib/aggregates" import ArticleView from "$lib/components/ArticleView.svelte" import SectionTaView from "$lib/components/SectionTaView.svelte" - import type { Textelr } from "$lib/legal" + import { pathnameFromLegalId, type Textelr } from "$lib/legal" export let data: Aggregate export let level = 1 @@ -23,7 +23,12 @@ diff --git a/src/routes/textes/[id]/+page.svelte b/src/routes/textes/[id]/+page.svelte index e50fd85..c5a6f30 100644 --- a/src/routes/textes/[id]/+page.svelte +++ b/src/routes/textes/[id]/+page.svelte @@ -1,6 +1,9 @@