From: Ruben Beltran del Rio Date: Sun, 14 Mar 2021 22:10:01 +0000 (+0100) Subject: Add components to view topics and posts X-Git-Url: https://git.r.bdr.sh/rbdr/forum/commitdiff_plain/74b03c33ff37d7363721bc2c33abb867dc9ea87c?ds=sidebyside;hp=cbe4a5fc39533cc244a05dbd866b1cb903776863 Add components to view topics and posts --- diff --git a/src/components/footer/footer.svelte b/src/components/footer/footer.svelte index 3587aab..317319e 100644 --- a/src/components/footer/footer.svelte +++ b/src/components/footer/footer.svelte @@ -1,7 +1,7 @@ diff --git a/src/components/forum/forum.svelte b/src/components/forum/forum.svelte index 7008e66..8fc0538 100644 --- a/src/components/forum/forum.svelte +++ b/src/components/forum/forum.svelte @@ -2,20 +2,21 @@ export let id; import { _ } from 'svelte-i18n'; - import { getForum } from '$stores/forum'; - import ErrorBlock from '../error_block/error_block.svelte'; + import { getForum } from '$/stores/forum'; + import ErrorBlock from '$/components/error_block/error_block.svelte'; + import Loader from '$/components/loader/loader.svelte'; - import TopicSummary from '$components/topic_summary/topic_summary.svelte'; + import TopicSummary from '$/components/topic_summary/topic_summary.svelte'; $: store = getForum(id); $: forum = $store.data; {#if $store.loading} -

Loading...

+ {/if} {#if $store.error} - + {/if} {#if forum}

{forum.glyph} {$_(forum.label)}

diff --git a/src/components/forum_list/forum_list.svelte b/src/components/forum_list/forum_list.svelte index 46f60f0..2998c09 100644 --- a/src/components/forum_list/forum_list.svelte +++ b/src/components/forum_list/forum_list.svelte @@ -1,12 +1,13 @@