From 8f5278eb443864910dd9c2131c992d71e3af2d20 Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 26 Aug 2022 23:54:17 +0300 Subject: Big bang --- src/components/Thread.svelte | 74 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/components/Thread.svelte (limited to 'src/components/Thread.svelte') diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte new file mode 100644 index 0000000..8e07c9f --- /dev/null +++ b/src/components/Thread.svelte @@ -0,0 +1,74 @@ + + + +{#if thread.id != "rules"} +
+ + {thread.id} + at {formatTime(thread.creationDate)}
+ + -> + {thread.threadCreator} +
+ + {#if listReplies(thread.id)} +
+ {#each replies as id} + >>{id}  + {/each} +
+ {/if} + +
+ +

{thread.threadName}

+ + {#if thread.imageId!= null && thread.imageId != undefined} + {#if thread.fileType == 'image'} + + {thread.imageId}
+
+ {:else if thread.fileType == 'video'} + + {/if} + {/if} + +

{@html thread.threadText}

+ + + +
+{/if} + + -- cgit v1.2.3