From 9d952483f250a97cbeab4061fa1c4e68341b330f Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 28 Aug 2022 23:22:15 +0300 Subject: posting thread and image works --- src/pages/board/[board].astro | 11 +++++++++++ src/pages/board/[board]/[tid].astro | 11 +++-------- 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'src/pages/board') diff --git a/src/pages/board/[board].astro b/src/pages/board/[board].astro index 23a5551..a529d3c 100644 --- a/src/pages/board/[board].astro +++ b/src/pages/board/[board].astro @@ -1,6 +1,8 @@ --- import Default from '../../layouts/Default.astro'; import Thread from '../../components/Thread.svelte' +import '../../styles/thread.css' +import '../../styles/blackbox.css?' import type Thread from '../../models/Thread'; import { api } from '../../lib/api.ts'; @@ -18,8 +20,17 @@ for(let thread of threads)

{board}

+
+ +
{threads.map((thread) => ( ))}
+ + diff --git a/src/pages/board/[board]/[tid].astro b/src/pages/board/[board]/[tid].astro index 80e7fbe..4aa34ef 100644 --- a/src/pages/board/[board]/[tid].astro +++ b/src/pages/board/[board]/[tid].astro @@ -1,7 +1,7 @@ --- import Default from '../../../layouts/Default.astro'; import Thread from '../../../components/Thread.svelte' -import Comment from '../../../components/Comment.svelte' +import '../../../styles/thread.css' import type Thread from '../../../models/Thread'; import { api } from '../../../lib/api'; @@ -14,13 +14,8 @@ if(data.status === 404) return Astro.redirect('/404'); const thread: Thread = await data.json(); await processThreadIn(board, thread, true); -const comments: Comment[] = thread.comments; --- - - {comments.map((comment) => ( - - ))} - - + + \ No newline at end of file -- cgit v1.2.3