-
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 #170 from wwi21seb-projekt/final_fixes
fix error handling
- Loading branch information
Showing
51 changed files
with
605 additions
and
502 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
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,20 @@ | ||
<script lang="ts"> | ||
import type { TextColorPost } from '$lib/types/Post'; | ||
export let postPicture: string | undefined; | ||
export let contentText: TextColorPost[]; | ||
</script> | ||
|
||
<!--Content Section for Posts and reposts--> | ||
<section class="p-4"> | ||
{#if postPicture} | ||
<div class="flex justify-center"> | ||
<img class="max-h-[375px] rounded-md object-contain" src={postPicture} alt="" /> | ||
</div> | ||
{/if} | ||
<p class="h-[10vh] p-1 text-lg" title="repostPostcontent"> | ||
{#each contentText as { hashtagClass, text, wordID } (wordID)} | ||
<span class={hashtagClass}>{text} </span> | ||
{/each} | ||
</p> | ||
</section> |
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,32 @@ | ||
<script lang="ts"> | ||
import type { Author } from '$lib/types/Author'; | ||
import ProfilePicture from '../ProfilePicture.svelte'; | ||
export let author: Author; | ||
export let repostLocationString: string; | ||
export let repostDate: string; | ||
</script> | ||
|
||
<!-- Header Section for Posts and reposts without the delete option on profile page--> | ||
<div class="flex flex-row items-center"> | ||
<ProfilePicture | ||
cssClass="h-[5vh] w-[5vh] rounded-full mr-3 isolation-auto" | ||
src={author.picture?.url ?? ''} | ||
username={author.username} | ||
/> | ||
<div class="flex flex-col"> | ||
<a | ||
class="text-[0.75rem]" | ||
title="repostAuthorUsername" | ||
href="/profile?username={author.username}" | ||
data-sveltekit-preload-data="hover">@{author.username}</a | ||
> | ||
|
||
<p class="font-light text-xs text-[0.75rem]" title="repostAuthorNickname"> | ||
{author.nickname} | ||
</p> | ||
</div> | ||
</div> | ||
<div class="flex flex-col items-end"> | ||
<p class="text-xs text-[0.75rem]">{repostLocationString}</p> | ||
<p class="text-xs text-[0.75rem]" title="repostPostdate">{repostDate}</p> | ||
</div> |
Oops, something went wrong.