-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from nwaughachukwuma/replace-local-session-wit…
…h-db-session-model Replace local session with db session model
- Loading branch information
Showing
20 changed files
with
190 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<script lang="ts"> | ||
import type { SessionModel } from '@/utils/types'; | ||
export let session: SessionModel; | ||
import type { ContentCategory } from '@/utils/types'; | ||
export let title: string = 'Untitled'; | ||
export let category: ContentCategory; | ||
</script> | ||
|
||
<div class="flex w-full px-4 flex-col gap-y-3 sm:max-w-xl lg:max-w-3xl max-w-full"> | ||
<div class="flex w-full flex-col gap-y-3 sm:max-w-xl lg:max-w-3xl max-w-full"> | ||
<div class="mb-4 flex flex-col gap-y-2"> | ||
<span class="capitalize bg-gray-800 text-gray-300 w-fit py-1 px-3 rounded-md"> | ||
{session.category} | ||
{category} | ||
</span> | ||
|
||
{#if session.metadata?.title} | ||
<h1 class="text-2xl font-semibold text-sky-200">{session.metadata.title}</h1> | ||
{/if} | ||
<h1 class="text-2xl font-semibold text-sky-200">{title}</h1> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script> | ||
import { goto } from '$app/navigation'; | ||
import { PlusIcon } from 'lucide-svelte'; | ||
import { Button } from './ui/button'; | ||
</script> | ||
|
||
<Button | ||
on:click={() => goto('/', { invalidateAll: true, replaceState: true })} | ||
class="py-6 px-10 animate-fade-in rounded-md text-base no-underline text-center hover:no-underline bg-gray-800 text-gray-200 hover:bg-gray-700" | ||
> | ||
<PlusIcon class="w-4 h-4 inline mr-2" /> | ||
New Audiocast | ||
</Button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.