kopia lustrzana https://github.com/learn-awesome/learndb
merge conflict resolved
commit
1ffc07c565
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
<svelte:window on:hashchange={hashchange}/>
|
<svelte:window on:hashchange={hashchange}/>
|
||||||
|
|
||||||
<TailwindUI.AppShell {alltopics}>
|
<TailwindUI.AppShell>
|
||||||
<svelte:fragment slot="content">
|
<svelte:fragment slot="content">
|
||||||
{#if currentView === "/home" || currentView === "/"}
|
{#if currentView === "/home" || currentView === "/"}
|
||||||
<Home/>
|
<Home/>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
{:else if currentView === "/formats"}
|
{:else if currentView === "/formats"}
|
||||||
<FormatList/>
|
<FormatList/>
|
||||||
{:else if currentView.startsWith("/format/")}
|
{:else if currentView.startsWith("/format/")}
|
||||||
<FormatDetail format={currentView.split("/")[2]}/>
|
<FormatDetail format={currentView.split("/")[2]} {alltopics}/>
|
||||||
{:else if currentView === "/courses"}
|
{:else if currentView === "/courses"}
|
||||||
<CourseList/>
|
<CourseList/>
|
||||||
{:else if currentView.startsWith("/item/")}
|
{:else if currentView.startsWith("/item/")}
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
import ItemCard from "./ItemCard.svelte"
|
import ItemCard from "./ItemCard.svelte"
|
||||||
|
|
||||||
import VideoCard from "./VideoCard.svelte"
|
import VideoCard from "./VideoCard.svelte"
|
||||||
|
import SearchForm from "./SearchForm.svelte"
|
||||||
|
|
||||||
export let format;
|
export let format;
|
||||||
|
export let alltopics;
|
||||||
let items = [];
|
let items = [];
|
||||||
|
|
||||||
$: fetch(`/learn/items.json?_shape=array&links__contains=${format}|`)
|
$: fetch(`/learn/items.json?_shape=array&links__contains=${format}|`)
|
||||||
|
@ -12,6 +15,8 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<SearchForm {alltopics}/>
|
||||||
|
|
||||||
<div class="md:flex md:items-center md:justify-between mb-8">
|
<div class="md:flex md:items-center md:justify-between mb-8">
|
||||||
<div class="flex-1 min-w-0">
|
<div class="flex-1 min-w-0">
|
||||||
<h2 class="text-2xl font-bold leading-7 text-gray-100 sm:text-3xl sm:truncate"> {format}</h2>
|
<h2 class="text-2xl font-bold leading-7 text-gray-100 sm:text-3xl sm:truncate"> {format}</h2>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import Icon from "./Icon.svelte"
|
import ComboBox from "./tailwindui/ComboBox.svelte"
|
||||||
import ComboBox from "./ComboBox.svelte"
|
|
||||||
export let alltopics;
|
export let alltopics;
|
||||||
|
|
||||||
let query = {
|
let query = {
|
|
@ -5,6 +5,7 @@
|
||||||
import BookCard from "./BookCard.svelte"
|
import BookCard from "./BookCard.svelte"
|
||||||
import VideoCard from "./VideoCard.svelte"
|
import VideoCard from "./VideoCard.svelte"
|
||||||
import GenericCard from "./GenericCard.svelte"
|
import GenericCard from "./GenericCard.svelte"
|
||||||
|
import SearchForm from "./SearchForm.svelte"
|
||||||
|
|
||||||
export let topicname;
|
export let topicname;
|
||||||
export let alltopics;
|
export let alltopics;
|
||||||
|
@ -18,6 +19,8 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<SearchForm {alltopics}/>
|
||||||
|
|
||||||
<TopicMasonryGrid {topicname} {alltopics}/>
|
<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">
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import TopicMasonryGrid from "./TopicMasonryGrid.svelte"
|
import TopicMasonryGrid from "./TopicMasonryGrid.svelte"
|
||||||
export let alltopics;
|
export let alltopics;
|
||||||
|
import SearchForm from "./SearchForm.svelte"
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<SearchForm {alltopics}/>
|
||||||
|
|
||||||
<TopicMasonryGrid {alltopics}/>
|
<TopicMasonryGrid {alltopics}/>
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
let isNavDrawerOpen = false
|
let isNavDrawerOpen = false
|
||||||
export let showNotificationBell = false;
|
export let showNotificationBell = false;
|
||||||
export let showProfileMenu = false;
|
export let showProfileMenu = false;
|
||||||
export let alltopics;
|
|
||||||
import SearchForm from "./SearchForm.svelte"
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -95,7 +93,7 @@
|
||||||
<Icon kind="menu"/>
|
<Icon kind="menu"/>
|
||||||
</button>
|
</button>
|
||||||
<div class="flex-1 flex justify-between">
|
<div class="flex-1 flex justify-between">
|
||||||
<SearchForm {alltopics}/>
|
|
||||||
{#if showNotificationBell || showProfileMenu}
|
{#if showNotificationBell || showProfileMenu}
|
||||||
<div class="ml-4 flex items-center md:ml-6">
|
<div class="ml-4 flex items-center md:ml-6">
|
||||||
{#if showNotificationBell}
|
{#if showNotificationBell}
|
||||||
|
|
Ładowanie…
Reference in New Issue