kopia lustrzana https://github.com/learn-awesome/learndb
alltopics fix for TopicDetail
rodzic
43162d6bfa
commit
76a9a9e130
|
@ -62,7 +62,7 @@
|
||||||
{:else if currentView === "/topics"}
|
{:else if currentView === "/topics"}
|
||||||
<TopicList {alltopics}/>
|
<TopicList {alltopics}/>
|
||||||
{:else if currentView.startsWith("/topic/")}
|
{:else if currentView.startsWith("/topic/")}
|
||||||
<TopicDetail topicname={currentView.split("/").slice(2).join("/")}/>
|
<TopicDetail topicname={currentView.split("/").slice(2).join("/")} {alltopics}/>
|
||||||
{:else if currentView === "/formats"}
|
{:else if currentView === "/formats"}
|
||||||
<FormatList/>
|
<FormatList/>
|
||||||
{:else if currentView.startsWith("/format/")}
|
{:else if currentView.startsWith("/format/")}
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
import GenericCard from "./GenericCard.svelte"
|
import GenericCard from "./GenericCard.svelte"
|
||||||
|
|
||||||
export let topicname;
|
export let topicname;
|
||||||
|
export let alltopics;
|
||||||
|
|
||||||
let items = [];
|
let items = [];
|
||||||
|
|
||||||
$: fetch(`/learn/items.json?_shape=array&topics__contains=${topicname}`)
|
$: fetch(`/learn/items.json?_shape=array&topics__contains=${topicname}`)
|
||||||
|
@ -17,7 +19,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<TopicMasonryGrid {topicname}/>
|
<TopicMasonryGrid {topicname} {alltopics}/>
|
||||||
|
|
||||||
<!-- <div class="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">
|
<!-- <div class="grid grid-cols-1 gap-6 sm:grid-cols-2 md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3">
|
||||||
{#each items as item}
|
{#each items as item}
|
||||||
|
|
Ładowanie…
Reference in New Issue